There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

Gnome Dconf-editor: set terminal application with options

I’m able to set the default terminal using dconf-editor at this path:

org/cinnamon/desktop/applications/terminal/exec

in the Custom value field.

How can I add options to that, like a --fullscreen?

If I add options, it doesn’t work, like for this custom value:

cool-retro-term --fullscreen

palordrolap ,

Had a quick look in my own dconf and there's an entry called exec-arg (same path) with the description "Exec Arguments". That looks like the place to add the options.

(Not sure how to go about adding this if it's not there though. Editing a value and modifying an underlying schema are a bit different in difficulty, especially if the path is deprecated or not supported by the version of Cinnamon in use.)

The ~ issue I'm not sure about. Perhaps there's $@ / $1 / %s / %1 or similar parameter support, but I'd have to root around the Internet or source code to know for sure.

luthis OP ,

I was expecting a place to add arguments, but on mine that isn’t available

palordrolap ,

What's the result of gsettings list-keys org.cinnamon.desktop.default-applications.terminal in a terminal?

Also try gsettings list-keys org.gnome.desktop.default-applications.terminal in case your system uses the GNOME setting(s) instead.

If either show exec-arg but the equivalent isn't showing up in the dconf editor, you could try changing the list-keys to reset. Make sure you back up your dconf before doing this on the off-chance it's corrupted and this makes it worse.

Likewise gsettings has a set subcommand that changes values. Similar "have a backup" caveats apply. (I'm not expecting that it is corrupt, but better safe than sorry).

Worst case scenario here is that you have to create a [shell/Perl/Python/etc.] script (assuming that will work) or C executable (almost guaranteed to work, but a pain) that execs the necessary command with the required arguments and then give the name of that to the exec key in the dconf.

luthis OP ,

Thanks! I’ll check when I get back from work today.

luthis OP ,

Finally got around to this again…

I have found using gsettings that the keys you listed both have exec and exec-arg.

If I check those keys with dconf, only exec is listed.

palordrolap ,
  1. Close dconf editor.
  2. Backup /home/yourusername/.config/dconf/user file just in case things break later.
  3. In a terminal: gsettings reset org.cinnamon.desktop.default-applications.terminal exec-arg
  4. Open dconf editor and see if the exec-arg entry is now visible.

If not:

  1. Close dconf again.
  2. Terminal: gsettings set org.cinnamon.desktop.default-applications.terminal exec-arg "--"
  3. Open dconf editor and see if the exec-arg entry is now visible. Maybe it doesn't show up if there's nothing in it (which is strange, but I guess possible).

Also "--" is usually a safe command line thing because it means "end of arguments" for most commands.

You can try:

  1. Terminal: gsettings get org.cinnamon.desktop.default-applications.terminal exec-arg

...to see if the entry has the double dash or not, whether or not it shows up in the dconf editor.

Further things:

Uninstalling and reinstalling the dconf editor might be worth a try.

The gsettings command should be usable to set exec-arg regardless of what the dconf editor says.

Restore that backup if things do go screwy. I can't see any obvious reason why they would, but I can't explain the dconf editor's behaviour either.

luthis OP ,

Actually even worse, when I right-click in Nemo and open in terminal, it just opens to ~ instead of current directory.

Arrrg! Any tips on that too?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines