chmln/handlr

An example of setting the default terminal within filemanagers?

RaafatTurki opened this issue · 1 comments

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?

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