Skip to content
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

Missing Spotify and Gimp #77

Open
peteruithoven opened this issue Jan 8, 2019 · 4 comments
Open

Missing Spotify and Gimp #77

peteruithoven opened this issue Jan 8, 2019 · 4 comments

Comments

@peteruithoven
Copy link

I noticed I suddenly can't find the following applications in AppEditor while they do appear in the Applications menu:

  • Spotify
  • GIMP

Both are installed as snaps, but other snaps do appear, like Gitkraken, Inkscape, Skype, VLC etc.

Anything I can do to help debug this?

@donadigo
Copy link
Owner

donadigo commented Jan 8, 2019

Can you tell where the desktops of those snaps are installed? I've been slowly working on adding snap support to AppEditor, but I haven't finished it yet.

I would like to know if they are in the same directory or not, that is, open AppEditor, choose existing snap app, and click "open in text editor" and see where that file is in the editor.

@peteruithoven
Copy link
Author

So of course I couldn't do that with Spotify but I tried that with Inkscape. Looks like the desktop files of all the snaps I have installed are in: /var/lib/snapd/desktop/applications.
The list of desktop files in there:

  • gimp_gimp.desktop
  • gitkraken_gitkraken.desktop
  • inkscape_inkscape.desktop
  • mimeinfo.cache
  • signal-desktop_signal-desktop.desktop
  • skype_skypeforlinux.desktop
  • spotify_spotify.desktop
  • vlc_vlc.desktop

So apparently there are desktop files for Spotify and GIMP.

The contents of the Spotify file:

[Desktop Entry]
Type=Application
Name=Spotify
GenericName=Music Player
Icon=/snap/spotify/28/usr/share/spotify/icons/spotify-linux-128.png
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/spotify_spotify.desktop /snap/bin/spotify %U
Terminal=false
MimeType=x-scheme-handler/spotify;
Categories=Audio;Music;Player;AudioVideo;
StartupWMClass=spotify

@peteruithoven
Copy link
Author

While installing the Arduino IDE I got this error:

Could not parse file "/home/peteruithoven/.local/share/applications/spotify_spotify.desktop": Key file contains line ?/snap/spotify/19/usr/share/spotify/icons/spotify-linux-128.png .desktop? which is not a key-value pair, group, or comment

The contents of that file:

[Desktop Entry]
Type=Application
Name=Spotify
GenericName=Music Player
Icon=/snap/spotify/19/usr/share/spotify/icons/spotify-linux-128.png
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/spotify_spotify.desktop /snap/bin/spotify %U --force-device-scale-factor=2
Terminal=false
MimeType=x-scheme-handler/spotify;
Categories=Music;Player;AudioVideo;Audio;
StartupWMClass=spotify
Name[en_US]=Spotify
X-GNOME-FullName[en_US]=Spotify
Comment[en_US]=
NoDisplay=false
Path=
X-GNOME-UsesNotifications=false


/snap/spotify/19/usr/share/spotify/icons/spotify-linux-128.png .desktop

After removing that last line it does show up in AppEditor.

Although it can't find the icon, looks like the number 19 in that file path should currently be at 28, but I understand that's something that's dynamic and is updated once in a while.

In that /home/peteruithoven/.local/share/applications/ directory there is no desktop file for GIMP.

@donadigo
Copy link
Owner

Hm, quite weird considering that I have the GIMP snap installed and it does show in both app menu and AppEditor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants