MarkHedleyJones / dmenu-extended

An extension to dmenu for quickly opening files and folders.
MIT License
387 stars 33 forks source link

Cannot open application when there are space in `Name` in the desktop file #116

Closed Edenharder closed 2 years ago

Edenharder commented 3 years ago

For example, the default name of the application owncloud is

Name = owncloud desktop sync client

When we select owncloud desktop sync client in the list of dmenu-extended, nothing happens. If we do the change

Name = owncloud

and rebuild the cache. When we select owncloud in the list ofdmenu-extended`, everything works fine.

Similar issue exists for other applications also, for example Skype for linux.

Fuseteam commented 3 years ago

this bug seems familiar.....

Fuseteam commented 3 years ago

ah right there was a similar bug with files and exec paths but seems unrelated

MarkHedleyJones commented 2 years ago

The issues appears to be that the owncloud .desktop file had some extra whitespace at the end of it's name which was being stripped when received from the menu, but was still present in the cache (so wasn't matching the entered command with the aliased command). Anyway I've pushed some changes so feel free to try the new version and let me know if you still have any issues.

Edenharder commented 2 years ago

Thank you! It works now.