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

find default terminal via dpkg #6

Open
justinmk opened this issue Sep 23, 2013 · 8 comments
Open

find default terminal via dpkg #6

justinmk opened this issue Sep 23, 2013 · 8 comments

Comments

@justinmk
Copy link
Owner

see if we can query dpkg / update-alternatives for the preferred terminal, and/or one of gnome's things:

  • gsettings (ubuntu 12+)
  • gconf (deprecated)
  • gnome-default-applications-properties
  • gconf registry key: /desktop/gnome/applications/terminal/exec

Another: configure "x-terminal-emulator" via galternatives

http://askubuntu.com/questions/72517/where-can-i-set-the-default-terminal-emulator

http://askubuntu.com/questions/70540/how-can-i-set-default-terminal-used

@justinmk
Copy link
Owner Author

Another possibility: XFCE's exo-open:

exo-open --launch TerminalEmulator

@justinmk
Copy link
Owner Author

When update-alternatives is updated, it looks like this:

update-alternatives: using /usr/bin/terminator to provide /usr/bin/x-terminal-emulator in auto mode

Then just call x-terminal-emulator to launch a terminal.

@gcollura
Copy link

Hi, thanks for this nice plugin. Could you please allow setting the default terminal to open with a global variable such as g:gtfo_default_terminal? (you could do the same with the default file manager too)

Thank you again and happy holidays!

@justinmk
Copy link
Owner Author

@random-cpp That's been requested before, so I will plan to add it in the next few days. Are you on linux/bsd? Is there a reason that you wouldn't want to use update-alternatives or some similar mechanism set your desktop's default terminal? That seems like a more elegant solution to me than setting it specifically in a Vim plugin.

@gcollura
Copy link

I'm on linux, but I'm using urxvt + zsh + tmux "standalone" (oh my zsh tmux plugin) so I'd need to set up a special configuration to make everything work..

@justinmk
Copy link
Owner Author

Fair enough. Thanks for the report!

@gcollura
Copy link

Thank you for your time!

@justinmk
Copy link
Owner Author

justinmk commented Sep 5, 2014

@gcollura setting a custom terminal is supported now. Example:

let g:gtfo#terminals = { 'unix' : 'rxvt-unicode -cd' }

See README.md for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants