Konsole command get this:Use KActionCollection::setDefaultShortcut(s) instead

When I use the Konsole command I get this message:
kf.xmlgui: Shortcut for action “” “Show shortcuts” set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
kf.xmlgui: Shortcut for action “” “Show SSH manager” set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.

I’ve searched the web but have found things that I don’t feel like trying at random.
I state that I’ve only been using Manjaro for a few months and I don’t have many technical skills on this so.
Can anyone help me remove that annoying message?
Thanks for the replies

Are you launching Konsole from within Konsole, or where do you see this message?

Launching Konsole from TTY is likely not gonna work as requires a window manager to launch.

from within a konsole

Does it launch an extra konsole window/tab or not?

If it does, it works as it should. The lines in the output is just information.

You can redirect errors to null :wink:

konsole 2> /dev/null 

About this message, it’s known bug (though seems nothing important)

it works well, but if I could remove these messages…

thanks a lot

Late to the party, again. Different time zones, I suppose.

I couldn’t see this being mentioned, so here it goes. The way I use to launch a new Terminal or an new Terminal TAB while I sit at the keyboard issuing commands (i.e. not via a script), is as follows:

New Terminal window:


New Terminal TAB:


This way, the current command line will be empty and will not issue any error messages. Well, for me anyway. If I try the way you used initially, I also get the same error messages.

Hope this helps someone in some small way. 8)

1 Like

I see that it is not something that blocks the action.
My problem is that I made a Python application that launches .sh shell scripts via a graphical interface that I wanted to publish on GitHub and I wanted to add a video showing how it works.
But with those lines of error it’s just ugly to see.
That’s why I wanted to remove them.
Thank you for your availability anyway, I’ll see if I can find a graphic solution to hide these lines.

I tried your advice “konsole 2> /dev/null” and it works fine from terminal but I don’t see how I can apply it when I call my command “konsole -e /home/pit/execute/borg/execute/list.sh” which launch in Python with subprocess.Popen(args), maybe adding something inside the sh script?

Maybe that solution will be more suitable for you. Disable qt logging for Konsole session with:

export QT_LOGGING_RULES='*=false'

clear screen with Ctrl + l and do whatever you want with konsole :wink:

1 Like

This is the correct method to open a new Konsole window
It is much preferable
Or do as I have done - create a custom shortcut for Konsole

→ System Settings
→ Shortcuts
→ Add application
→ Konsole
→ Open new window
→ My preference is MetaEnter

Finally I succeeded

in the call i added > /dev/null
konsole -e /home/pit/execute/borg/execute/list.sh > /dev/null
in the bash profile .zshrc
export QT_LOGGING_RULES=‘*=false’

if I open a konsole and with the Python command run_sh.py
it works, so I can make the video I wanted.
Thank you
Now I have to understand why when instead I launch it from run_sh.desktop that points to a launch .sh instead it doesn’t work.

Instead of using Konsole in your script - use bash

bash -c /home/pit/execute/borg/execute/list.sh

This would solve your other issue as well

1 Like

bash -c interesting I’ll elaborate, but I see it doesn’t open me an additional terminal window.
Instead I varied Exec in the .desktop file like this

Exec=env QT_LOGGING_RULES=‘*=false’ /home/pit/execute/run_sh/run_sh_dev.sh > /dev/null

and it works perfectly.
Thank you all guys you have been invaluable.
Also because I’ve only been using Linux for a few months and the more I know about it the more I like it.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.