You are not logged in.

#1 2020-03-27 05:32:35

zw963
Member
Registered: 2018-06-18
Posts: 200

[Solved] "Open in terminal" use konsole in budgie-desktop failed.

I use Gnome 3 with budgie-desktop, but i use konsole as my preferred terminal.

I try to set use "konsole" as my "Open in Terminal" use following command, but failed.
it still use gnome-terminal as default option.


gsettings set org.gnome.desktop.default-applications.terminal exec konsole

I don't sure about if this is a bug, or missing some package, or just run wrong command,
but anyway,  please help, thank you!

https://user-images.githubusercontent.c … b0d295.png


moderator edit -- replaced oversized image with link.
Pasting pictures and code

Last edited by zw963 (2020-03-30 15:26:18)

Offline

#2 2020-03-27 14:52:33

glitsj16
Member
Registered: 2015-04-26
Posts: 116

Re: [Solved] "Open in terminal" use konsole in budgie-desktop failed.

gsettings set org.gnome.desktop.default-applications.terminal exec konsole

When you use dconf-editor to change that key it becomes more obvious why that didn't work:

DEPRECATED: This key is deprecated and ignored. The default terminal is handled in GIO.

The less obvious thing is that gio can only set default handlers for mimetypes, which terminal emulators don't have AFAIK. See https://bbs.archlinux.org/viewtopic.php?id=246952 for a workaround.

Offline

#3 2020-03-29 11:33:40

zw963
Member
Registered: 2018-06-18
Posts: 200

Re: [Solved] "Open in terminal" use konsole in budgie-desktop failed.

Hi, thank you for help, i check that post, in fact, not working.

1. If i remove gnome-terminal package, there is no "Open in Terminal" in the right key menu anymore.
2. If i keep gnome-terminal package, then, i remove /usr/bin/gnome-terminal(and all hardlink in /usr/sbin etc)
and replace it with following bash script, when i click on "Open in Terminal", it still open gnome-terminal!

if [[ "$*" =~ "-x" ]]; then
    arg=$(echo $* |sed 's#-x#-e#g')
    konsole $arg
else
    konsole "$@"
fi

It is too wired ...

Offline

#4 2020-03-29 12:55:02

glitsj16
Member
Registered: 2015-04-26
Posts: 116

Re: [Solved] "Open in terminal" use konsole in budgie-desktop failed.

Too bad the workaround isn't working for you. I assume you are talking about changing the "Open in Terminal" in nautilus. If so, there's a package in AUR that supports konsole: https://aur.archlinux.org/packages/naut … -terminal/

Offline

#5 2020-03-30 15:25:44

zw963
Member
Registered: 2018-06-18
Posts: 200

Re: [Solved] "Open in terminal" use konsole in budgie-desktop failed.

This tools is working, thank you!

Though, it is not so useful because new instance not use loginin shell,
so, some global function(defined my me) not available in new konsole instance.

Last edited by zw963 (2020-03-30 15:36:09)

Offline

#6 2020-03-30 16:45:00

glitsj16
Member
Registered: 2015-04-26
Posts: 116

Re: [Solved] "Open in terminal" use konsole in budgie-desktop failed.

Not sure if it's such a great idea to run each konsole instance as a login shell, but if you need it, this might help. Glad you made some progress at least.

Offline

Board footer

Powered by FluxBB