pop-os / launcher

Modular IPC-based desktop launcher service
Mozilla Public License 2.0
228 stars 45 forks source link

Add to launcher #76

Closed User8395 closed 2 years ago

User8395 commented 2 years ago

I added an app to the GNOME app list, but it is not showing up in the Launcher. How can I manually add an app to the GNOME app menu and launcher?

jacobgkau commented 2 years ago

The Launcher reads .desktop files from several locations and filters them based on the logic in the plugin file: https://github.com/pop-os/launcher/blob/master/plugins/src/desktop_entries/mod.rs

How did you add the app to the GNOME app list? Where did you place the .desktop file and what is its contents?

User8395 commented 2 years ago

/usr/share/applications/ I just put some Android Studio info there

jacobgkau commented 2 years ago

Please share the contents of the .desktop file like I requested. That way, I can confirm the syntax is valid and test it on my own system to see what the issue might be.

User8395 commented 2 years ago

I don't know the exact contents, but I it was something like this:

[Desktop Entry]
Version=1.0
Name=Android Studio
Exec=/home/qaqak/Apps/AndroidStudio/bin/studio.sh
Icon=/home/qaqak/Apps/AndroidStudio/bin/studio.png
Type=Application
Terminal=false

Yeah, something like that

jacobgkau commented 2 years ago

Can you please run cat on the file so you can show what's actually in it?

User8395 commented 2 years ago

I, uh, deleted it...

jacobgkau commented 2 years ago

I placed the output you gave in the location you stated, and the Launcher shows the icon:

Screenshot from 2022-01-03 09-17-23

Please re-open the issue (or comment here so it can be re-opened) if you are able to recreate it again.

User8395 commented 2 years ago

Okay for a reason it finally worked. I don't know what the problem was, but if it works, don't touch it. Sorry for the confusion!

User8395 commented 2 years ago

But I have another question. I get that when it says System, it's a desktop file in /usr/share/applications. When it says Flatpak, it's a flatpak. When it says Snap(System), it's a Snap But how do you get it to say Local?

jacobgkau commented 2 years ago

But how do you get it to say Local?

Place it in ~/.local/share/applications (where ~ is your home directory).