This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Shortcut: how to start a konsle and execute a command ?

Tags: None
(comma "," separated)
kde-denebe
Registered Member
Posts
2
Karma
0
Hello,

I know how to configure a shortcut by example for "thunderbird", it works well.

I wonder how I can configure a shortcut for the software "mutt".

I tried to configure it with "kmenuedit" or simply with "system settings, shortcuts", it doesn't work.

I think it is necessary that the shortcut opens a terminal and then execute "mutt" in it, but I do not know how to do it.

Thank you for your help,
Denebe.
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
Hi!

There are different ways. I suggest using the easiest. Copy the konsole desktop file from /usr/share/applications to — or create a new desktop file in — ~/.local/share/applications and edit it to contain only needed parts.

The Exec command should look like `Exec=/usr/bin/konsole --hold -e /usr/bin/mutt`.

Another approach would be to use DBus to create a new tab and execute the command, if you are using yakuake or already have an instance of konsole running.
Clancularius
Registered Member
Posts
50
Karma
0
If you are using the kde menu editor
Code: Select all
konsole -e mutt
in the command field should be enough. Presuming typing "mutt" in konsole is the command to open it.

Personally, I use neomutt and created a konsole profile which loads it. I then used

Code: Select all
konsole --profile Neomutt


"Neomutt" being what I named the profile. The advantage for of this is that you can use the colour theming of konsole profiles to change the appearance.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell