Tomas-M / xlunch

Graphical app launcher for X with minimal dependencies
http://xlunch.org
GNU General Public License v3.0
219 stars 35 forks source link

Add an option to hide double entries #19

Closed Smile4ever closed 7 years ago

Smile4ever commented 7 years ago

Some applications have multiple desktop files. Okular has three different occurences in xlunch. Can this (optionally?) be reduced to one please? I think it's safe to assume the icon will be the same.

Tomas-M commented 7 years ago

Patches welcome :)

PMunch commented 7 years ago

I think this is a case of the .desktop files being in different folders. I think there is some order in which the files should be prioritized so that users can create a .desktop file in ~/.local/share/applications to override the .desktop file in /usr/share/applications

Tomas-M commented 7 years ago

Actually the user can simply edit the generated conf file in order to delete icons he doesn't like. The generator just blindly takes all programs and icons it finds. But the main intention is to let the user edit the conf file manually.

PMunch commented 7 years ago

Hmm, I guess that makes sense. But what happens if the user creates a custom file and then installs a program? Does the list update?

Tomas-M commented 7 years ago

Nope, it does not autoupdate.

Tomas-M commented 7 years ago

Ideal would be to update it each time user starts the software, but it is a time consuming operation, because there are so many icons in the system in so many folders and subfolders, so it cannot be done that way. Due to that I decided to use a simple configuration file.