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

An example of setting the default terminal within filemanagers? #62

Open
RaafatTurki opened this issue May 20, 2022 · 1 comment
Open

Comments

@RaafatTurki
Copy link

RaafatTurki commented May 20, 2022

I'm a bit confused about setting the default terminal emulator using x-scheme-handler/terminal as it's not working with neovim and thunar, here are the steps I followed:

  • install xdg-utils-handlr from the AUR
  • set x-scheme-handler/terminal (I have kitty installed)
~ handlr get x-scheme-handler/terminal
kitty.desktop
  • now open your file manager of choice (I use thunar which uses GIO's GAppInfo as listed here) and right click on a .txt file
    image
  • select Open With "Neovim" (neovim does have Terminal=true in its .desktop file so that checks out)
    image

No cigar :(

Furthermore the same steps can be followed with the change of thunar -> pcmanfm
And setting inside pcmanfm Edit > Preferences > Advanced > Terminal emulator to kitty works just fine.
This is obviously overriding something hence is a crutch of a solution

Am I missing something here?

@RaafatTurki RaafatTurki changed the title An example of setting the default terminal? An example of setting the default terminal within filemanagers? May 20, 2022
@gandalf3
Copy link

gandalf3 commented Feb 10, 2023

This is because thunar is part of xfce, which doesn't use xdg-open but instead an xfce alternative (exo-open). handlr likely isn't being executed at all. pcmanfm (lxde) and other environments also do this. If you want, you can customize the default applications exo uses via xfce4-settings-manager

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