Desktop apps installed using snap in KDE won't run

I installed githib dekstop app github-gui using snap:
$ sudo snap install github-gui
and initially it ran fine however after a restart the app isn’t running. When I open from CL using command
$ github-gui
the app doesn’t open and there is no output.

I have tried refreshing the app using
$ snap refresh github-gui
but this has no effect.

I’m also experiencing the same issue with another desktop app I installed at the same time - trello-desktop

I uninstalled and reinstalled the app again using snap as above.

The app then ran from the command interface, with the following output:

$ github-gui
Gtk-Message: 22:28:18.007: Failed to load module "xapp-gtk3-module"

(github-gui:3971): Gtk-WARNING **: 22:28:18.118: Theme parsing error: gtk.css:3536:25: 'font-feature-settings' is not a valid property name
Gtk-Message: 22:28:18.147: Failed to load module "colorreload-gtk-module"
Gtk-Message: 22:28:18.147: Failed to load module "window-decorations-gtk-module"
(node:3971) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron.  See https://github.com/electron/electron/issues/23506 for more information

After closing the app, I was not able to open it again. Running it from the CLI produces no output.

Here is the output of journalctl:

$ journalctl --user -r 
Dec 13 22:41:58 cf-ux410uqk systemd[586]: Started snap.github-gui.github-gui.c6dbf314-ea57-4ea4-b0e8-02e1dad141ca.scope.
Dec 13 22:40:10 cf-ux410uqk systemd[586]: Started snap.github-gui.github-gui.f0cecef8-1d2c-4e97-8c3a-5b9766b761d9.scope.

From what I’m seeing when I do a search github-gui is the same as github-desktop? If so maybe try one of the other releases for it. I when I check pamac I see 3 on the AUR. Is trello-desktop also a snap package?

1 Like

Thank you Locutus I tried github-desktop but it doesn’t do the same thing as github-gui.

Trello-desktop is also a snap package. I cloned one of the other releases and installed the package and it works fine.

1 Like

I just discovered that githib-gui runs if it’s executed as root :confused:

$ sudo github-gui                                                                                                                     ✔ 
[sudo] password for cf: 

(github-gui:14236): Gtk-WARNING **: 09:12:32.884: Theme parsing error: gtk.css:3536:25: 'font-feature-settings' is not a valid property name
Gtk-Message: 09:12:32.899: Failed to load module "colorreload-gtk-module"
Gtk-Message: 09:12:32.899: Failed to load module "window-decorations-gtk-module"
(node:14236) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron.  See https://github.com/electron/electron/issues/23506 for more information


What if you install your SNAP correctly without sudo? Snap - Manjaro

Nice catch.

Not sure if it is that yet (should be, but I don’t use SNAP packages), I saw a couple minutes after I posted that Chrisf was replying, then not replying, then 5 minutes later replying, then not posting… so maybe, maybe not :smiley:

1 Like

OK so if I run githib-gui as SU then it runs. I don’t understand why the first time it runs is any different, why it runs as regular user, but there you have it.

After began replying as much, and then tried to install snap as described, but haven’t been successful yet with that approach, and I haven’t had a chance to detail it. But definitely something to do with the way I installed it in the first place - those commands came from snapcraft.io

I followed these instructions for installing snap.

I don’t know, I’m not a SNAP user (quite the contrary), maybe it is the proper way to use sudo but it seems weird to me. To me you use sudo when it is NEEDED. It doesn’t seem to be the case (//EDIT: see wiki link above) here so why is it suggested there, I don’t know.

I tried on a fresh install of manjaro using the steps in Snap - Manjaro.

The step

user $ ln -s /var/lib/snapd/snap /snap 

requires root permissions, IIUC (permission is denied). Therefore, I carried out this step using sudo.

The result (with respect to running programs installed using snap) is the same - they must be run as sudo.

Could this be the result of the /snap folder root permissions?

I tried changing the owner of /snap from root to my username (with the intention of uninstalling and re-installed github-gui) however after running

$ sudo chown {user} /snap

the folder still has root as owner :confused:

For the sake of it, I installed it.

pamac install snapd libpamac-snap-plugin
sudo systemctl enable --now snapd.socket

I enabled the plugin in Pamac GUI, then I searched for github-gui and installed it from the GUI.

Préparation...
Ensure prerequisites for "github-gui" are available
Installation de github-gui
Téléchargement de snapd démarré
Téléchargement de snapd terminé
Fetch and check assertions for snap "snapd" (17883)
Mount snap "snapd" (17883)
Installation de github-gui
Setup snap "snapd" (17883) security profiles
Automatically connect eligible plugs and slots of snap "snapd"
Setup snap "snapd" aliases
Téléchargement de core18 démarré
Téléchargement de core18 terminé
Fetch and check assertions for snap "core18" (2654)
Mount snap "core18" (2654)
Installation de github-gui
Make snap "core18" (2654) available to the system
Run install hook of "core18" snap if present
Ensure prerequisites for "gtk-common-themes" are available
Téléchargement de github-gui démarré
Fetch and check assertions for snap "bare" (5)
Mount snap "bare" (5)
Automatically connect eligible plugs and slots of snap "bare"
Téléchargement de gnome-3-28-1804 démarré
Téléchargement de gtk-common-themes démarré
Fetch and check assertions for snap "gtk-common-themes" (1535)
Téléchargement de gtk-common-themes terminé
Mount snap "gtk-common-themes" (1535)
Téléchargement de github-gui terminé
Fetch and check assertions for snap "github-gui" (2)
Mount snap "github-gui" (2)
Setup snap "github-gui" (2) security profiles
Automatically connect eligible plugs and slots of snap "github-gui"
Téléchargement de gnome-3-28-1804 terminé
Fetch and check assertions for snap "gnome-3-28-1804" (161)
Automatically connect eligible plugs and slots of snap "github-gui"
Mount snap "gnome-3-28-1804" (161)
Installation de github-gui
Automatically connect eligible plugs and slots of snap "github-gui"
Automatically connect eligible plugs and slots of snap "gnome-3-28-1804"
Automatically connect eligible plugs and slots of snap "github-gui"
Connect github-gui:network to snapd:network
Connect github-gui:icon-themes to gtk-common-themes:icon-themes
Setup snap "github-gui" (2) security profiles for auto-connections
Transaction terminée avec succès.

After that I rebooted, I went to terminal and here is the result:

[omano@omano-nvme ~]$ snap list
Name               Version                     Rev    Tracking       Publisher    Notes
bare               1.0                         5      latest/stable  canonical**  base
core18             20221205                    2654   latest/stable  canonical**  base
github-gui         1.0.0                       2      latest/stable  emon007      -
gnome-3-28-1804    3.28.0-19-g98f9e67.98f9e67  161    latest/stable  canonical**  -
gtk-common-themes  0.1-81-g442e511             1535   latest/stable  canonical**  -
snapd              2.57.6                      17883  latest/stable  canonical**  snapd
[omano@omano-nvme ~]$ git
git                 git-cvsserver       git-receive-pack    git-upload-archive  git2_cli            gitdiffview         gitk                
git-clang-format    git-latexdiff       git-shell           git-upload-pack     gitdiff             github-gui          

[omano@omano-nvme ~]$ github-gui 
Gtk-Message: 10:18:28.648: Failed to load module "xapp-gtk3-module"

(github-gui:2351): GdkPixbuf-WARNING **: 10:18:28.784: Cannot open pixbuf loader module file '/home/omano/snap/github-gui/common/.cache/gdk-pixbuf-loaders.cache': No such file or directory

This likely means that your installation is broken.
Try running the command
  gdk-pixbuf-query-loaders > /home/omano/snap/github-gui/common/.cache/gdk-pixbuf-loaders.cache
to make things work again for the time being.
Gtk-Message: 10:18:28.805: Failed to load module "colorreload-gtk-module"
Gtk-Message: 10:18:28.805: Failed to load module "window-decorations-gtk-module"
(node:2351) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron.  See https://github.com/electron/electron/issues/23506 for more information

[omano@omano-nvme ~]$ github-gui 
Gtk-Message: 10:19:09.015: Failed to load module "xapp-gtk3-module"

(github-gui:2626): GdkPixbuf-WARNING **: 10:19:09.020: Cannot open pixbuf loader module file '/home/omano/snap/github-gui/common/.cache/gdk-pixbuf-loaders.cache': No such file or directory

This likely means that your installation is broken.
Try running the command
  gdk-pixbuf-query-loaders > /home/omano/snap/github-gui/common/.cache/gdk-pixbuf-loaders.cache
to make things work again for the time being.
Gtk-Message: 10:19:09.035: Failed to load module "colorreload-gtk-module"
Gtk-Message: 10:19:09.035: Failed to load module "window-decorations-gtk-module"
(node:2626) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron.  See https://github.com/electron/electron/issues/23506 for more information

[omano@omano-nvme ~]$ github-gui 
Gtk-Message: 10:19:18.697: Failed to load module "xapp-gtk3-module"

(github-gui:2793): GdkPixbuf-WARNING **: 10:19:18.702: Cannot open pixbuf loader module file '/home/omano/snap/github-gui/common/.cache/gdk-pixbuf-loaders.cache': No such file or directory

This likely means that your installation is broken.
Try running the command
  gdk-pixbuf-query-loaders > /home/omano/snap/github-gui/common/.cache/gdk-pixbuf-loaders.cache
to make things work again for the time being.
Gtk-Message: 10:19:18.716: Failed to load module "colorreload-gtk-module"
Gtk-Message: 10:19:18.717: Failed to load module "window-decorations-gtk-module"
(node:2793) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron.  See https://github.com/electron/electron/issues/23506 for more information

[omano@omano-nvme ~]$

I could launch and close it multiple times in a row, never needed sudo to start it.

I then removed it, didn’t need sudo either, it opened a GUI popup asking for password.

[omano@omano-nvme ~]$ snap remove github-gui
github-gui removed
[omano@omano-nvme ~]$ 
1 Like

Well I do appreciate you going to that trouble for my sake. So I tried to repeat it.

I removed the symbolic link to /var/lib/snapd that was created with root privileges, as this is the only time I used sudo where I shouldn’t have since the fresh install, as far as I can tell.

I removed the package with

$ snap remove github-gui
github-gui removed

This step required authentication.

I enabled Snap plugin in the Pamac GUI and installed the package that way without providing root authentication.

Preparing...
Installing github-gui
Fetch and check assertions for snap "github-gui" (2)
Mount snap "github-gui" (2)
Setup snap "github-gui" (2) security profiles
Connect github-gui:gtk-3-themes to gtk-common-themes:gtk-3-themes
Connect github-gui:gnome-3-28-1804 to gnome-3-28-1804:gnome-3-28-1804
Connect github-gui:audio-playback to snapd:audio-playback
Setup snap "github-gui" (2) security profiles for auto-connections
Set automatic aliases for snap "github-gui"
Transaction successfully finished.

I ran the application once

$ github-gui                                                                                                                                                                                                   
Gtk-Message: 09:12:24.004: Failed to load module "xapp-gtk3-module"

(github-gui:26600): Gtk-WARNING **: 09:12:24.020: Theme parsing error: gtk.css:3536:25: 'font-feature-settings' is not a valid property name
Gtk-Message: 09:12:24.042: Failed to load module "colorreload-gtk-module"
Gtk-Message: 09:12:24.042: Failed to load module "window-decorations-gtk-module"
(node:26600) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron.  See https://github.com/electron/electron/issues/23506 for more information

But still needs sudo to run after closing.

Clean everything, remove SNAP completely clean EVERYTHING, then reboot, then reinstall everything.

I went a step further and did another fresh installation with a full system upgrade.
I installed snapd using

$ pamac install snapd libpamac-snap-plugin
$ sudo systemctl enable --now snapd.socket

and installed the package using the Pamac GUI.

After that I was able to run the application multiple times without the use of sudo.

As far as I can tell the only material thing I did differently was to not add a symbolic link using:

$ sudo ln -s /var/lib/snapd/snap /snap

Thank for your help this app is really useful for me and I’ll be more careful about using sudo in future.

OK so it wasn’t anything to do with the install of snap. After posting above it started happening again when I’d finished setting things up after the fresh install.

So, after several rollbacks to the last full install and upgrade, and then testing after every step, I determined that the issue is being caused by the use of a symbolic link in replace of the Documents folder in the home directory.

Specifically, Documents is replaced with a symbolic link to a folder on a separate NTFS partition which Manjaro shares with Windows.

I rolled back to before the folder was replaced with the link and simply deleted the Documents folder, after which running the app gave this:

$ github-gui                                                                                                                                                                                                                   ✔ 
/home/cf/Documents was removed, reassigning DOCUMENTS to homedir

It seems odd that the app would require sudo to write to a symbolically linked folder…

I’ve written to the developer.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.