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

Editing desktop entries with unescaped backslashes (e.g., those created by Wine) keeps adding backslashes #142

Open
ernstki opened this issue Dec 26, 2022 · 0 comments

Comments

@ernstki
Copy link

ernstki commented Dec 26, 2022

This is with Wine 5.0 from the Ubuntu 20.04 repositories, as seen with MenuLibre 2.2.1 (from the Ubunto repos) as well as 2.3.0 from GitHub.

Whenever a desktop entry created by a Wine program installer is edited and saved with MenuLibre, MenuLibre seems to stack on extra backslashes (with each subsequent edit) to command lines like

env WINEPREFIX="/home/me/.wine" wine-stable C:\\\\windows\\\\command\\\\start.exe /Unix /home/me/.wine/dosdevices/c:/users/me/Start\\ Menu/Programs/PuTTY/Pageant.lnk

such that you end up with

env WINEPREFIX="/home/me/.wine" wine C:\\\\\\\\windows\\\\\\\\command\\\\\\\\start.exe /Unix /home/me/.wine/dosdevices/c:/users/me/Start\\\\ Menu/Programs/PuTTY/PuTTY.lnk

and the launcher stops working.

I should note: a desktop entry created by Wine with backslashes in it. If, for example, I alter the Exec key to

  Exec=env WINEPREFIX="/home/me/.wine" wine start /unix "/home/me/.wine/dosdevices/c:/users/me/Start Menu/Programs/PuTTY/PuTTY.lnk"                                                                      

this behavior in MenuLibre isn't triggered. Probably this is what Wine should've done in the first place.

I think the desktop entries being created by the version on Wine on this system (5.0) aren't escaped properly, and there's only so much you can do about somebody else's brokenness. Figured you'd want to at least be aware of it, though.

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

1 participant