tilix icon indicating copy to clipboard operation
tilix copied to clipboard

Flatpack Install fails to lauch from gnome shell (application menu)

Open sferich888 opened this issue 5 years ago • 10 comments

Nov 07 22:40:13 HOSTNAME dbus-daemon[1441]: [session uid=1000 pid=1441] Activating service name='com.gexperts.Tilix' requested by ':1.8' (uid=1000 pid=1544 comm="/usr/bin/gnome-shell " label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")
Nov 07 22:40:13 HOSTNAME systemd[1419]: Started flatpak-com.gexperts.Tilix-3440.scope.
Nov 07 22:40:14 HOSTNAME com.gexperts.Tilix[1441]: bwrap: execvp /usr/bin/tilix: No such file or directory
Nov 07 22:40:14 HOSTNAME dbus-daemon[1441]: [session uid=1000 pid=1441] Activated service 'com.gexperts.Tilix' failed: Process com.gexperts.Tilix exited with status 1

This issue seems to be caused by how gnome is starting or trying to start tilix, from /var/lib/flatpak/app/com.gexperts.Tilix/x86_64/master/active/files/share/dbus-1/services/com.gexperts.Tilix.service however I have not been able to get this behavior to change, but editing this file.

I am able to start the flatpack using the cli, flatpak run com.gexperts.Tilix, but I can't start it using gnome.

$ gnome-shell --version GNOME Shell 3.30.1 $ flatpak --version Flatpak 1.0.4

sferich888 avatar Nov 08 '18 04:11 sferich888

@kirbyfan64 can you have a look at this (as the contributor to the original source). It should probably be said that I am seeing this issue on Silverblue but IDK if that maters.

cc: @alex285 based on the initial commit you did not seem to have this issue have you updated or had any issues like this lately?

sferich888 avatar Nov 08 '18 04:11 sferich888

Do you have normal Tilix installed as well? I recall this happening at one point when both the rpm and flatpak were installed, so I had assumed it was a GNOME issue, but I haven't tested in a while.

refi64 avatar Nov 08 '18 04:11 refi64

I do not. With Silverblue you have to mess with the rpmos-tree to get packages installed (I'm trying to avoid that).

sferich888 avatar Nov 08 '18 05:11 sferich888

The issue is with export/share/dbus-1/services/com.gexperts.Tilix.service

D-BUS Service]
Name=com.gexperts.Tilix
Exec=/usr/bin/flatpak run --branch=master --arch=x86_64 --command=/usr/bin/tilix com.gexperts.Tilix --gapplication-service~

This should just be --command=tilix

sferich888 avatar Nov 11 '18 12:11 sferich888

@sferich888 It was already fixed on master https://github.com/gnunn1/tilix/blob/master/data/dbus/com.gexperts.Tilix.service.in#L3

bilelmoussaoui avatar Nov 11 '18 12:11 bilelmoussaoui

I just build from master ~5 days ago (this is still an issue). Or the build istructions are not having you build correctly (as @bindir@ is still getting set to /usr/bin/

sferich888 avatar Nov 11 '18 13:11 sferich888

Hmm, I'll try to take a look at this later.

refi64 avatar Nov 11 '18 16:11 refi64

Temporary fix until a fix comes: In the flatpak-builder directory, go to exports/share/dbus-1/com.gexperts.Tilix.service and change /usr/bin/tilix to tilix manually And rebuild with --force-clean

thebitstick avatar Nov 29 '18 06:11 thebitstick

The issue is that the Flatpak manifest still uses autotools, this issue was fixed with meson only. We should update the manifest to use the meson buildsystem instead.

bilelmoussaoui avatar Nov 29 '18 09:11 bilelmoussaoui

I think this original issue is fixed but... the flat pack still has issues (example: https://github.com/containers/toolbox/issues/886) feel free to close as resolved.

sferich888 avatar Nov 12 '21 01:11 sferich888