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

Preferred application for terminal emulator does not respect command-line arguments in .desktop entry #771

Open
TsarFox opened this issue Jan 20, 2025 · 1 comment

Comments

@TsarFox
Copy link

TsarFox commented Jan 20, 2025

Suppose I have a .desktop entry such as this:

[Desktop Entry]
Type=Application
Version=1.0
Name=Vterm
NoDisplay=true
Comment=Tell a running Emacsclient to open a terminal
Icon=emacs
Exec=/usr/bin/emacsclient -c -e "(vterm 't)"
Terminal=false
Categories=GTK;System;TerminalEmulator;
X-Desktop-File-Install-Version=0.28

If I install this entry and choose it as my preferred terminal emulator, the "run a terminal" command in Marco will run /usr/bin/emacsclient, but will not pass the arguments specified in the .desktop entry. It appears that the settings daemon is ignoring them when installing the command to /org/mate/desktop/application/terminal.

[desktop/applications/terminal]
exec='/usr/bin/emacsclient'

If I manually overwrite the key with dconf, the command in Marco now works.

dconf write /org/mate/desktop/applications/terminal/exec "'/usr/bin/emacsclient -c -e \"(vterm \'t)\"'"
@lukefromdc
Copy link
Member

lukefromdc commented Jan 21, 2025 via email

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

2 participants