bluesabre / menulibre

MenuLibre is an advanced menu editor that provides modern features in a clean, easy-to-use interface.
https://bluesabre.org/menulibre
GNU General Public License v3.0
199 stars 18 forks source link

Backslashes in 'command' field get doubled on save #196

Open kkatsuro opened 4 months ago

kkatsuro commented 4 months ago

When you put backslash into 'command' field of desktop entry and then save, it gets doubled. Same happens in working directory section, so I assume it may happen in different fields too, if there are any other.

Version: 2.4.0

k4100x commented 4 months ago

I have also noticed this recently, using menulibre 2.4.0 on Ubuntu Budgie 24.04 LTS.

In my case I had installed a couple of Windows apps using WINE. Those installations created .desktop files in the correct folder location(s), but when I edited the entries using menulibre to specify an icon or menu category, saving would double the backslashes in the command field, turning four backslashes into eight, and another save would turn eight backslashes into sixteen.

Luckily by then I had seen how things were connected, so I just edited the .desktop files using gedit to make them work again.