-
-
Notifications
You must be signed in to change notification settings - Fork 401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Packaging IBus engines with flatpak #3019
Comments
I have a similar problem, though I haven't started packaging yet |
@AnwarShah what problem do you face ? Is the debug/error message similar to this ? |
I haven't gone to packaging. I am assessing whether it is possible to use flatpak for providing ibus engine to be used by system ibus. |
I am maintaining an iBus engine, so I am also interested in this issue. |
@mominul Nice to see there's a Bangla ibus engine :) Can you try packaging yours ? Perhaps another set of eyes will help in making it work. I don't know C much and haven't got into the engine's code. I'm just trying to package it. |
@subins2000 Thanks for your appreciation! But I want to know about is it possible to pack IMEs with Flatpak in the first place as IME(ibus engines) might require special permissions. I don't have enough knowledge of dbus or Flatpak to know if this is possible. It'd be great if a person familiar with Flatpak would help us. |
Do you have ibus-portal? |
@fujiwarat This should included in the flatpak package ? How do I know if I have it or not ? Is this a host thing or a package thing ? |
ibus-portal is running in the host side. and sandbox also should include GTK IM module for IBus. |
@fujiwarat I'm using Ubuntu 18.04. Is How do I include GTK IM module in sandbox ? Any examples ? |
I think you have to use the latest version https://github.com/ibus/ibus/releases |
ibus 1.5.17 has ibus-portal. You can check it's running with |
@fujiwarat Just checked, I have sh-4.4$ ./ibus-engine-varnam --ibus -l ml -n "varnam.ml"
(null) varnamd is not running. Launching a new instance
GLib posix_spawn avoided (automatic reaping requested) (fd close requested) (null) Failed to start varnamd. Failed to execute child process ?varnamd? (No such file or directory)
(null) Failed to start varnamd. Sync will be disabled
GVFS-RemoteVolumeMonitor Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown
GVFS cannot open directory /usr/share/gvfs/remote-volume-monitors: Error opening directory ?/usr/share/gvfs/remote-volume-monitors?: No such file or directoryGVFS org.gtk.vfs.MountTracker.listMountableInfo call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown (g-dbus-error-quark, 2)
GLib-GIO _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs?IBUS ibus_factory_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failedGLib-GObject g_object_ref_sink: assertion 'G_IS_OBJECT (object)' failedIBUS ibus_factory_add_engine: assertion 'IBUS_IS_FACTORY (factory)' failedIBUS ibus_bus_call_sync: assertion 'ibus_bus_is_connected (bus)' failed |
Sorry, I misread your issue. You tries to package an ibus engine but not application. |
@fujiwarat so there's no way to package an IBus engine with flatpak ? Or any workarounds or something ? |
There is no way and necessary for ibus engines. |
@fujiwarat It would be useful for packaging and distributing engines across various distros with ease. So I guess this issue would be a feature request for flatpak and IBus. |
There is no reason to run ibus-daemon in host and engines in sandbox. |
Flatpak cannot install libs to the host so this isn't even a feature request for Flatpak. It seems this is just how ibus is designed and intended to work. |
Linux distribution and version
Linux Mint 19 Tara
Flatpak version
Flatpak 1.0.8
Description of the problem
I'm trying to package this IBus engine. Here's the packaging repo. I gave enough permissions for the engine to connect to parent
ibus-daemon
but it fails :To test if it's a connection problem, I ran the default ibus-tmpl engine, but that also fails establishing a connection :
So it seems that it is failing in a connection to ibus. I read #675, perhaps flatpak is limiting the access of an engine ?
Does flatpak's implementation of ibus portal supports packaging an engine ?
Or am I doing it wrong ? Here are the permissions :
The text was updated successfully, but these errors were encountered: