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

\ issue in Command Line field? #41

Open
peteruithoven opened this issue Feb 23, 2018 · 2 comments
Open

\ issue in Command Line field? #41

peteruithoven opened this issue Feb 23, 2018 · 2 comments

Comments

@peteruithoven
Copy link

I have a desktop file for Firefox nightly. I've hardcoded it to open with my "Nightly" profile. But every time I save changes to it's Command Line field it seems to add \'s.
Screencast:
appeditor exec issue

Original desktop file:

[Desktop Entry]
Name=Firefox Z Nightly
GenericName=Firefox Nightly
Exec=/usr/local/firefox_nightly/firefox -p "Nightly" --no-remoteappcen
Terminal=false
Icon=firefox_nightly
Type=Application
Categories=Application;X-Developer;Network;
Comment=Firefox Nightly Web Browser.
Name[en_US]=Firefox Nightly
X-GNOME-FullName[en_US]=Firefox Nightly
Comment[en_US]=Firefox Nightly Web Browser.
NoDisplay=false
Path=
X-GNOME-UsesNotifications=false

When going to this item in AppEditor it's Command Line shows:

/usr/local/firefox_nightly/firefox -p "Nightly" --no-remoteappcen

If I then make any change (even when changing the title for example) it adds those \'s and it changed the desktop file to:

[Desktop Entry]
Name=Firefox Z Nightly
GenericName=Firefox Nightly
Exec=/usr/local/firefox_nightly/firefox -p \\"Nightly\\" --no-remoteappcen
Terminal=false
Icon=firefox_nightly
Type=Application
Categories=Application;X-Developer;Network;
Comment=Firefox Nightly Web Browser.
Name[en_US]=Firefox Nightly
X-GNOME-FullName[en_US]=Firefox Nightly
Comment[en_US]=Firefox Nightly Web Browser.
NoDisplay=false
Path=
X-GNOME-UsesNotifications=false

If I make other change more \'s are added.

@donadigo
Copy link
Owner

Yes, this is known bug and a I'm aware of it, should be fixed in a new release

@eljefuri
Copy link

eljefuri commented Nov 10, 2018

I can confirm the issue @peteruithoven found. It is particularly destructive with Wine .desktop files, where there are paths with \ in them. Simply saving those entries in AppEditor seems to add more and more \ until the desktop file stops working.

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

3 participants