"Open with..." dialog for terminal apps uses xterm, regardless of default terminal

Open
#3,483 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
c
Domain
desktop

Research direction

Start by tracing Nemo's handling of desktop entries with Terminal=true and searching for uses of org.cinnamon.desktop.default-applications.terminal exec. Reproduce the Open with terminal-app behavior with xterm absent, then verify that the configured terminal is used and that the existing Open in terminal behavior remains unchanged.

Written by the indexing model from the issue text.

Description

Distribution

Arch -- kernel: 6.11.4-arch2-1

Package version

6.2.8

Frequency

Always

Bug description

On a file "Right-click > Open with ..." then selecting a terminal application like Neovim seems to fully disregard my default terminal specified in org.cinnamon.desktop.default-applications.terminal exec as set with gsettings, instead always opening the app in xterm as far as i can tell.

With xterm uninstalled, opening a file in Neovim this way just fails silently.

If I just symlink my terminal to /usr/bin/xterm, it works as expected and Neovim opens the file in my terminal just fine.

Steps to reproduce
  1. Uninstall xterm (possibly uninstall other 'default' terminals like gnome-terminal too — i haven't tried much, just xterm alacritty and st, of which only xterm worked)
  2. Open nemo, on a file "Right-click > Open with ..."
  3. Choose any terminal app — I believe this applies to apps whose .desktop file specifies Terminal=true
Expected behavior

For consistency I guess this should just use the terminal set at org.cinnamon.desktop.default-applications.terminal exec.
This gsettings key is required/used to determine the terminal for the "Open in terminal" dialog within folders already, so I expected the same would apply to "Open with ... > some terminal app", which it doesn't seem to.

Additional information

No response

Dominant language
C
Stars
1.6k
Forks
368
Avg merge
4d 4h
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxmint/nemo

All issues in linuxmint/nemo

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.