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

Can't launch dolphin or spectacle from shortcut

Tags: None
(comma "," separated)
User avatar
Jayen
Registered Member
Posts
22
Karma
0
OS
Hi there,

I haven't been able to launch spectacle from the PrtSc button on my keyboard for a while. Maybe since I upgraded from debian 9 to debian 10.

These are my settings. I have tried resetting to defaults.

Image Image

I found this in in ~/.xession-errors when I press PrtSc or Meta+E:

Code: Select all
kdeinit5: Got EXEC_NEW '' from launcher.
kdeinit5: preparing to launch 'libkdeinit5_'
Could not open library 'libkdeinit5_'.
Cannot load library libkdeinit5_: (libkdeinit5_: cannot open shared object file: No such file or directory)
kdeinit5: PID 30413 terminated.


I found this in ~/.config/kglobalshortcutsrc:

Code: Select all
[org.kde.spectacle.desktop]
ActiveWindowScreenShot=Meta+Print,Meta+Print,Capture Active Window
CurrentMonitorScreenShot=,none,Capture Current Monitor
FullScreenScreenShot=Shift+Print,Shift+Print,Capture Entire Desktop
RectangularRegionScreenShot=Meta+Shift+Print,Meta+Shift+Print,Capture Rectangular Region
_k_friendly_name=Spectacle
_launch=Print,Print,Launch Spectacle


kde-spectacle: 18.04.0-1
plasma-workspace: 4:5.14.5.1-1
dolphin: 4:18.08.0-1

Anyone got any ideas?
choury
Registered Member
Posts
1
Karma
0
The same as you
epicpilgrim
Registered Member
Posts
5
Karma
0
Same issue here. FWIW, I am running Plasma 5.18.5 on PopOS 20.04, which I assume is using the Plasma binaries from Ubuntu 20.04.

I have been having issues with Plasma shortcuts not working in several distros, even posted about it here: https://forum.kde.org/viewtopic.php?f=17&t=166079

I am not holding my breath this will be fixed in a hurry. Can't believe something as simple as application shortcuts is so hard for them to fix.
User avatar
Jayen
Registered Member
Posts
22
Karma
0
OS
epicpilgrim wrote:Can't believe something as simple as application shortcuts is so hard for them to fix.


It's always hard to figure out what's wrong when nothing happens. It's much easier to track down when something happens.
kahbenya
Registered Member
Posts
1
Karma
0
Jayen wrote:Hi there,

I haven't been able to launch spectacle from the PrtSc button on my keyboard for a while. Maybe since I upgraded from debian 9 to debian 10.

These are my settings. I have tried resetting to defaults.

Image Image

I found this in in ~/.xession-errors when I press PrtSc or Meta+E:

Code: Select all
kdeinit5: Got EXEC_NEW '' from launcher.
kdeinit5: preparing to launch 'libkdeinit5_'
Could not open library 'libkdeinit5_'.
Cannot load library libkdeinit5_: (libkdeinit5_: cannot open shared object file: No such file or directory)
kdeinit5: PID 30413 terminated.


I found this in ~/.config/kglobalshortcutsrc:

Code: Select all
[org.kde.spectacle.desktop]
ActiveWindowScreenShot=Meta+Print,Meta+Print,Capture Active Window
CurrentMonitorScreenShot=,none,Capture Current Monitor
FullScreenScreenShot=Shift+Print,Shift+Print,Capture Entire Desktop
RectangularRegionScreenShot=Meta+Shift+Print,Meta+Shift+Print,Capture Rectangular Region
_k_friendly_name=Spectacle
_launch=Print,Print,Launch Spectacle


kde-spectacle: 18.04.0-1
plasma-workspace: 4:5.14.5.1-1
dolphin: 4:18.08.0-1

Anyone got any ideas?



Had a similar issue with KRunner

Noticed that there is an "Application Launcher" for KRunner and an "Other Shortcuts" for Run Command.
I set the shortcuts that were on Application Launcher > KRunner to Other Shortcuts > Run Command and it worked.

My kglobalshortcutsrc had entries for both and reflected the changes

Code: Select all
[krunner]
_k_friendly_name=Run Command
run command=Alt+Space\tAlt+F2,Alt+Space,Run Command
run command on clipboard contents=Alt+Shift+F2,Alt+Shift+F2,Run Command on clipboard contents

[krunner.desktop]
RunClipboard=,Alt+Shift+F2,Run command on clipboard contents
_k_friendly_name=KRunner
_launch=\t\tSearch,none,KRunner


ImageImage

Your screenshot has an entry for Spectacle under Application Launchers but I don't have a similar entry. In my shortcuts, under Other Shortcuts > KDE Daemon there is an entry for Start Screenshot Tool with Print as the shortcut. I suggest you move the shortcut key and abandon the Spectacle entry under Application Launchers.

Image

This is the corresponding entry in kglobalshortcutsrc

Code: Select all
[khotkeys]
_k_friendly_name=KDE Daemon
{04fc503d-5e46-4828-bb2c-e83c9b7e5bd3}=Shift+Print,none,Take Full Screen Screenshot
{8c4361f9-3ab4-4767-b40b-089d87deb0ed}=Ctrl+Alt+T,none,Launch Konsole
{c5f64245-421a-48dd-8eb1-d1a8aafaf75d}=Print,none,Start Screenshot Tool
{c8d69e12-2fed-49d1-a452-8ea9c15fd90b}=Meta+Print,none,Take Active Window Screenshot
{d03619b6-9b3c-48cc-9d9c-a2aadb485550}=,none,Search


Code: Select all
plasmashell 5.16.5
Qt: 5.12.4
KDE Frameworks: 5.62.0
kf5-config: 1.0
User avatar
Jayen
Registered Member
Posts
22
Karma
0
OS
kahbenya wrote:I set the shortcuts that were on Application Launcher > KRunner to Other Shortcuts > Run Command and it worked.


Very helpful. I forgot I used kmenuedit to setup konsole with a shortcut key, and setting up Spectacle to launch this way with the PrtSc key works.
Sybren
Registered Member
Posts
1
Karma
1
I have the same, on Kubuntu 21.04. Unfortunately using kmenuedit to set up Spectacle also doesn't work for me; it results in the same errors in .xsession-errors.

I can confirm that the approach on viewtopic.php?f=17&t=166079 helped:
- In System Settings, Shortcuts, remove the entire Spectacle section
- Log out, then log back in
- Go to System Settings, Shortcuts, and see that Spectacle is restored with default shortcuts.
- Try the Print Screen key, it should launch Spectacle now.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]