Regression: Kubuntu Jaunty RC cannot take screenshot

Bug #364641 reported by dotancohen
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KDE Base
Fix Released
Medium
kdebase-workspace (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

The Kubuntu Jaunty alphas did not take screenshots when pressing the Print Screen button, but that issue was fixed for the Beta. The RC suffers a regression and it too does not take screenshots with the Print Screen button.

Revision history for this message
In , Michał Borek (michal-ownlog) wrote :

Version: nieznana (using 4.00.85 (KDE 4.0.85 (KDE 4.1 >= 20080703) "release 4.2", KDE:KDE4:Factory:Desktop / openSUSE_11.0)
Compiler: gcc
OS: Linux (i686) release 2.6.25.9-0.2-pae

In previous version of KDE4 there was very useful shortcut (PtrScr), which was opening KSnapshot. It doesn't work in KDE 4.0.85.

It's very hard to find settings, where I could change this option.

Revision history for this message
In , Cgiboudeaux (cgiboudeaux) wrote :

*** Bug 168894 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Woseeb (woseeb) wrote :

Confirmed!

Revision history for this message
In , glenstewart (glen-stewart) wrote :

confirmed on Kubuntu Hardy Heron with KDE 4.1.1

Revision history for this message
In , Kádár-Németh Krisztián (krisztian-kad) wrote :

Confirmed on Mandriva 2009.0, KDE 4.1.2. :)

Revision history for this message
In , Kádár-Németh Krisztián (krisztian-kad) wrote :

*** This bug has been confirmed by popular vote. ***

Revision history for this message
In , Tommi Tervo (tommi-tervo) wrote :

*** Bug 174264 has been marked as a duplicate of this bug. ***

Revision history for this message
In , xenoterracide (xenoterracide) wrote :

confirmed gentoo 4.1.3

actually it doesn't appear that any of the hotkeys in khotkeys or kwin work for me.

I also seem to have duplicate entries in khotkeys for printscreen although only one of them has the shortcut assigned.

also this shouldn't be wishlist as it's a broken feature

Revision history for this message
In , xenoterracide (xenoterracide) wrote :

correction... kwin hotkeys work, except for the printscreen ones.

but khotkeys like ctrl+alt+t to bring up konsole don't

Revision history for this message
In , xenoterracide (xenoterracide) wrote :

I deleted the following

.kde4.1/share/config/khotkeysrc
.kde4.1/share/config/kglobalshortcutsrc

I think you have to be logged out of your X account when deleting them.

then ran khotkeys when I logged back in and it seems to be working now

However. khotkeys doesn't seem to have started on it's own, which could be part of the problem. (or even most peoples problem)

Revision history for this message
In , glenstewart (glen-stewart) wrote :

None of the suggested workarounds solve my problem to date.

Revision history for this message
In , Rolf Pedersen (rolfpedersen) wrote :

(In reply to comment #9)
> I deleted the following
>
> .kde4.1/share/config/khotkeysrc
> .kde4.1/share/config/kglobalshortcutsrc
>
> I think you have to be logged out of your X account when deleting them.
>
> then ran khotkeys when I logged back in and it seems to be working now
>
> However. khotkeys doesn't seem to have started on it's own, which could be part
> of the problem. (or even most peoples problem)
>

Running Mandriva 2009, KDE 4.1.3, I found this bug by searching google, as the PrintScreen key does not work for me as it did in KDE 3.5, either. I voted and tried Caleb's workaround, which seems to get the key working as it should, after starting khotkeys, as he said. Additionally, adding khotkeys as a program in the Autostart module of SystemSettings has provided a working PrintScreen behavior, past one reboot, anyway.

Revision history for this message
In , NForce (nforce25) wrote :

In 4.1.80, 4.1.81, 4.1.85 this bug is not present anymore

Revision history for this message
In , glenstewart (glen-stewart) wrote :

(In reply to comment #12)
> In 4.1.80, 4.1.81, 4.1.85 this bug is not present anymore
>

I can confirm that - running KDE 4.1.80, if I unassign the Global Keyboard Shortcut for PrintScreen, and then go into Input Actions and assign PrintScreen to the Ksnapshot application, it works.

This is in Kubuntu Intrepid.

Revision history for this message
In , Diego (panda84) wrote :

Doesn't work out of the box in Fedora 10 with 4.2 beta 2 from kde-testing. This should work without user intervention.

Revision history for this message
In , Zoom-re (zoom-re) wrote :

confirmed on KDE 4.2 beta 2 (opensuse-live)
printscreen still doesn't do anything.

Revision history for this message
In , Todd R (toddrme2178) wrote :

Still not working in KDE 4.2 final.

Revision history for this message
In , Sergei Andreev (seajey) wrote :

AFAIR in kubuntu 8.10 with KDE 4.2rc1 PrintScreen worked "from the box".

Revision history for this message
In , Kde-2011-08 (kde-2011-08) wrote :

In Kubuntu 8.10 with the official KDE 4.2 it doesn't work. Of course Glen Stewart's suggestion would probably work, but this should work without user intervention.

Revision history for this message
In , xenoterracide (xenoterracide) wrote :

not only can I confirm in gentoo/regen2 in 4.2 but my workaround doesn't work as khotkeys binary no longer exists. anyone have a working workaround?

Revision history for this message
In , Luigi Toscano (ltosky) wrote :

*** Bug 181072 has been marked as a duplicate of this bug. ***

Revision history for this message
In , xenoterracide (xenoterracide) wrote :

yah know... I just noticed this is assigned to the wrong people. it's not a problem with ksnapshot, that works fine, it's a problem with khotkeys not listening/calling ksnapshot. can someone change the product?

still present in 4.2.1

Revision history for this message
In , dsent (dsent) wrote :

Hotkeys are working as root in 4.2.1/openSUSE 11.1, but not working as regular user.

Revision history for this message
In , xenoterracide (xenoterracide) wrote :

I just noticed this is wishlist. can we move this to bug? and maybe get it blocking the release of kde 4.3... it's obviously not isolated.

Revision history for this message
In , Diego (panda84) wrote :

I remember Chani blogged about plans for keyboard shortcuts for KDE 4.3 in this blog post:
http://chani.wordpress.com/2009/01/29/jamaica/

CCing her, maybe she can help.
And sorry to her for the disturb if she can't help.

Revision history for this message
In , Rolf Pedersen (rolfpedersen) wrote :

(In reply to comment #11)
> (In reply to comment #9)
> > I deleted the following
> >
> > .kde4.1/share/config/khotkeysrc
> > .kde4.1/share/config/kglobalshortcutsrc
> >
> > I think you have to be logged out of your X account when deleting them.
> >
> > then ran khotkeys when I logged back in and it seems to be working now
> >
> > However. khotkeys doesn't seem to have started on it's own, which could be part
> > of the problem. (or even most peoples problem)
> >
>
> Running Mandriva 2009, KDE 4.1.3, I found this bug by searching google, as the
> PrintScreen key does not work for me as it did in KDE 3.5, either. I voted and
> tried Caleb's workaround, which seems to get the key working as it should,
> after starting khotkeys, as he said. Additionally, adding khotkeys as a
> program in the Autostart module of SystemSettings has provided a working
> PrintScreen behavior, past one reboot, anyway.

In Mandriva 2009.1 RC1, the printscreen key is working to start ksnapshot since installation.

ksnapshot-4.2.1-2mdv2009.1
kdebase4-workspace-4.2.1-126mdv2009.1

I don't see khotkeys running in ps:

[rolf@localhost ~]$ ps aux|grep hot
rolf 5758 5.1 1.3 42600 28956 ? R 05:35 0:01 /usr/bin/perl /usr/bin/draksnapshot-applet

In fact, it's not installed:

[rolf@localhost ~]$ urpmf khotkey
[..]
kdebase3-progs:/opt/kde3/bin/khotkeys
[..]
[rolf@localhost ~]$ rpm -q kdebase3-progs
package kdebase3-progs is not installed

Revision history for this message
In , Chanika (chanika) wrote :

nothing to do with me.

Revision history for this message
In , Kde-2011-08 (kde-2011-08) wrote :

I can comment that in Kubuntu 9.04 alphas with KDE 4.2 the Print Screen button does open Ksnapshot properly. I do not know if this is a Kubuntu or KDE change, though.

Revision history for this message
In , xenoterracide (xenoterracide) wrote :

are the alpha's on 4.2.1? or an svn version?

Revision history for this message
In , A-null (a-null) wrote :

It doesn't work for me in Kubuntu Jaunty 9.04 Alpha 6 with KDE 4.2.1 (PrintScreen button doesn't open KSnapShot) !!

My laptop key combination (Fn + PrtScrn) is recognized in the Global Shortcuts, khotkeys !

KDE Service manager says that KHotKeys service is running, but I don't see in the ps list if I do 'ps aux | grep -i khot'. Not sure if this is the correct way of checking running service.

Revision history for this message
In , Kde-2011-08 (kde-2011-08) wrote :

1) It seems that the Kubuntu Jaunty alphas use KDE 4.2.1

2) KHotKeys does not have to be running for the shortcut to work in the Kubuntu Jaunty alphas.

Revision history for this message
In , xenoterracide (xenoterracide) wrote :

I've had people using the same distro as me say it works... but it doesn't for me, and hasn't on fresh installs. I'm clueless as to what could be different.

Revision history for this message
In , FiNeX (finex) wrote :

*** Bug 189448 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Shabakthanai (stevenvollom) wrote :

KDE 4.2.2 Print Screen does not work. 64bit AMD Quad Jaunty Beta. It would be nice to have it back. Thanks!

affects: ubuntu → kubuntu-meta (Ubuntu)
Revision history for this message
dotancohen (dotancohen) wrote :
Revision history for this message
In , Kde-2011-08 (kde-2011-08) wrote :

I can confirm Steven Vollom's observation. Although KDE 4.2.0 and I think 4.2.1 did in fact have a functional Print Screen button, KDE 4.2.2 does not.

Revision history for this message
In , Geoff Cutter (geoff-cutter) wrote :

KSnapshot works from the Print Screen button for me.

Qt: 4.4.3
KDE: 4.2.2 (KDE 4.2.2) "release 112"
KSnapshot: 0.8.1

openSUSE 11.1 (i586)

Linux 2.6.27.21-0.1-pae i686

Revision history for this message
In , xenoterracide (xenoterracide) wrote :

kinda tired of worksforme... I install a brand new clean system and it doesn't work for me.

Revision history for this message
In , dsent (dsent) wrote :

So it's probably a Qt 4.5 issue.
Will it be fixed in 4.2.3?

Revision history for this message
In , xenoterracide (xenoterracide) wrote :

exists out of the box in arch linux 4.2, and I don't see how it's a qt-4.5 issue, I've had this since forever. it was 4.1 (which had a workaround), 4.2.0, none switched to 4.5 until 4.2.1

Revision history for this message
In , stanislav (iamstanislav) wrote :

KDE 4.2.71 / Qt 4.5
Arch Linux x86_64
--------------------

Not working PrtScr (for Ksnapshot), Ctrl+`, Ctrl+Alt+.

Revision history for this message
dotancohen (dotancohen) wrote :

The final Jaunty does not take screenshots on Prntscrn either, so I am updating the title of this bug.

Revision history for this message
In , Adam Reeve (adreeve) wrote :

Same problem here on Kubuntu 9.10 beta, KDE 4.3. Print screen key does nothing.

Revision history for this message
In , Zoom-re (zoom-re) wrote :

To make this work on KDE 4.3 (i use beta2, but it might work on other versions):
1) Go to System Settings -> Input Actions.
2) Right-click on the field (actions list) on the left of the window (the one with example actions)
3) Select in dropped-down menu New -> Global Shortcut -> Command\URL
4) Type a new name to this Action (i named it "PrintScreen")
5) Be shire this Action is selected in the list, and go to the right side of the window, to "Trigger" tab.
6) Assign shortcut to this action (PrtScr, or any key sequence you want)
7) Go to the Action tab, and type "ksnapshot" in Command\URL field.
8) Apply, and profit.

Revision history for this message
In , L-lunak-5 (l-lunak-5) wrote :

This is caused by r933942 "Import actions always in disabled state." - that is not right. The PrintScreen action is imported from printscreen.khotkeys and should be enabled by default, but this makes it disabled (and just enabling it in the kcm makes it all work).
I don't see the purpose of the change - if something should not be enabled when imported, it should be already disabled in the .khotkeys file.

Revision history for this message
In , zbyszek (cardiozibi) wrote :

I can confirm that PrtSc shortcut doesn't work out-of-the-box in KDE 4.3.0 (Arch Linux x86_64), neither reassigning the shortcut seem to be working.

Revision history for this message
In , Ns03ja (ns03ja) wrote :

Seems to be working for me out of the box in KDE 4.3.0 (Gentoo). It wasn't in 4.2 or 4.1 though.

Revision history for this message
In , Kde-2011-08 (kde-2011-08) wrote :

Kubuntu 9.04 KDE 4.3: Printscreen button does not work out of the box.

Revision history for this message
In , Kde-michael-jansen (kde-michael-jansen) wrote :

To stop the flood of works/works not emails. It shouldn't work in kde 4.3 for new user accounts. It should work or not for user accounts setup with previsous kde version. The reason is pointed out Lubos in comment #42.

I'm fixing that for 4.4. The problem as usual in this cases is that only new user accounts will profit from the solution. Everyone having created it's user account before or after 4.2 should have a not working key. Everyone doing that exactly with 4.2 should have it working.

Revision history for this message
In , Kde-2011-08 (kde-2011-08) wrote :

Thank you Michael. For those of use who switched to KDE after r933942, how do we fix the problem. From Lubos' comment it looks like we must enable something called kcm. How do we do that?

Thanks.

Revision history for this message
In , xenoterracide (xenoterracide) wrote :

@Michael where definition of new user account means no .kde* directory? or maybe there will just be some file in .kde people can easily delete to reset it?

Revision history for this message
In , Kde-michael-jansen (kde-michael-jansen) wrote :

It should be sufficient to delete the file .kde/share/config/khotkeysrc. Do that only if you never used khotkeys. Should only work in kde 4.2.

You have to relogin to recreate the file with the default content.

"kcmshell4 khotkeys" will open the kcm that is doing the work. kmenuedit could be used to assign an shortcut to the application ksnapshot.

For kde 4 i try to fix all wishes about kde not responding to "multimedia key xyz". At least those supported by qt. the groundwork is done.

Revision history for this message
In , Cyberbeat-p (cyberbeat-p) wrote :

"It should be sufficient to delete the file .kde/share/config/khotkeysrc. Do
that only if you never used khotkeys. Should only work in kde 4.2."

Do you mean that workaround does not work for kde-4.3? Is there a workaround for kde-4.3?

Revision history for this message
In , Kde-2011-08 (kde-2011-08) wrote :

I can confirm that erasing .kde/share/config/khotkeysrc in KDE 4.3 on a user that started out as KDE 4.2 does not enable the PrintScreen button. It only makes the currently configured shortcuts go away.

affects: kubuntu-meta (Ubuntu) → kdebase-workspace (Ubuntu)
Revision history for this message
In , Emmanuel Touzery (emmanuel-touzery) wrote :

KDE 4.3.1, the print screen key didn't work after setting up KDE, I deleted the .kde/share/config/khotkeysrc (whiled logged out, and relogged in afterwards) and it still doesn't work, even if I focus the desktop.

Revision history for this message
In , Emmanuel Touzery (emmanuel-touzery) wrote :

here's what I found about making screenshots in KDE using the print screen button.

It is configurable in System Settings->Keyboard & Mouse->Global Keyboard Shortcuts.

There on the combo on the top pick
KDE component: KWin.

By default there are two shortcuts:
Window Screenshot to Clipboard: Alt+Print
Desktop Screenshot to Clipboard: Control+Print (there I would have expected simply Print)

Now if I copy an image to the clipboard with gimp then press control+print, then paste with gimp, gimp tries to paste something (so the control+print did something) but in the end fails and says that there's no picture in the clipboard.

If I copy from gimp then press alt+printscreen then gimp pastes the image it copied so it seems alt+print screen is not detected (no action is taken when alt+printscreen is pressed).
Same with printscreen alone, no action taken.

If I try to reassign a keyboard shortcut to control+print it works (what I type on the keyboard is correctly detected as control+print).
If I try to reassign a keyboard shortcut to alt+print it says that keyboard combination is not supported by Qt (this is a bog-standard desktop keyboard, not laptop keyboard, no multimedia keys).
If I try to reassign a keyboard shortcut to print it works.

Also during this testing I managed to loose the keyboard. It just stopped reacting to key presses. I had to log out and back in. It worked the whole time in text ttys and when I logged out it worked immediately in KDM.

Revision history for this message
In , Maciej Warnecki (maciekw5) wrote :

PrintScreen works for me OOTB. Didn't try any "black magic" KDE 4.3.1, Arch
Kdemod (Chakra)

Revision history for this message
In , Emmanuel Touzery (emmanuel-touzery) wrote :

I'm using kubuntu karmic if that helps (not stable yet).

Revision history for this message
In , L-lunak-5 (l-lunak-5) wrote :

SVN commit 1029742 by lunakl:

Do not force disabling of imported actions. Some, such as PrintScreen
handling, should be enabled by default.
BUG: 166608

 M +1 -1 settings.cpp

WebSVN link: http://websvn.kde.org/?view=rev&revision=1029742

Revision history for this message
In , L-lunak-5 (l-lunak-5) wrote :

SVN commit 1029743 by lunakl:

Backport r1029742.
Do not force disabling of imported actions. Some, such as PrintScreen
handling, should be enabled by default.
BUG: 166608

 M +2 -2 settings.cpp

WebSVN link: http://websvn.kde.org/?view=rev&revision=1029743

Revision history for this message
Rich Johnson (nixternal) wrote :

Still the same in Karmic with 4.3.1. I looked through the global shortcuts for "Print" and all I found was this:

Ctrl+Print sends a desktop screenshot to the clipboard

Alt+L sends a window screenshot to the clipboard

I tried both of these and neither show up in Klipper, however I went into gimp and pasted them, so that works.

However, good news as it seems it was fixed upstream just this week (9/30/2009), so it is fixed in 4.4/trunk. Hopefully it gets backported to 4.3.3.

Changed in kdebase-workspace (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

It was backported a few days ago and has made the tagging of 4.3.2. :)

Changed in wyocode:
status: New → Invalid
Changed in kdebase-workspace (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
dotancohen (dotancohen) wrote :

I am not sure that the Fix Committed status is warranted. According to upstream, new installs will benefit from the change but upgrades from KDE <= 4.3 will still have the problem. That is, unless ~/.kde is deleted, the problem persists.

Revision history for this message
Anthony Mercatante (tonio) wrote :

This issue is addressed upstream in kde 4.3.2.

Unfortunatelly due to the way khotkeys are handled (incremental ID), there is no way to override the user's khotkeysrc and kglobalshortcutsrc without breaking it's personally defined shortcuts.

It'll for for any new user, for there is no way to make it to work for people having a predefined profile before update, appart from letting them manually delete their khotkeysrc and kglobalshortcutsrc

Changed in kdebase-workspace (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
In , Sigra (sigra) wrote :

Had this problem after Gentoo forced me to move from KDE 3.5.10 to KDE 4.3.1. Tried to start khotkeys and then it worked! But I found out that program was a leftover from KDE3, so it would soon go away. Tried zOOm_ER's method instead, but it did not work at first. But with an additional step, it finally worked.

(In reply to comment #41)
> To make this work on KDE 4.3 (i use beta2, but it might work on other
> versions):
> 1) Go to System Settings -> Input Actions.
> 2) Right-click on the field (actions list) on the left of the window (the one
> with example actions)
> 3) Select in dropped-down menu New -> Global Shortcut -> Command\URL
> 4) Type a new name to this Action (i named it "PrintScreen")
> 5) Be shire this Action is selected in the list, and go to the right side of
> the window, to "Trigger" tab.
> 6) Assign shortcut to this action (PrtScr, or any key sequence you want)
> 7) Go to the Action tab, and type "ksnapshot" in Command\URL field.

7a) Make sure that the checkbox after "Examples" is checked. Otherwise "Examples" is grayed out and nothig below it in the tree structure will work.

> 8) Apply, and profit.

Revision history for this message
In , Kde-2011-08 (kde-2011-08) wrote :

Works for me in KDE 4.3.4 without playing with any files. Thanks!

Changed in kdebase:
status: Unknown → Fix Released
Revision history for this message
In , xenoterracide (xenoterracide) wrote :

I'm not sure on 4.3.4 or 4.3.5 but it's fixed out of the box in 4.4 I'm happy.

Revision history for this message
In , karaluh (karaluh) wrote :

How to enable the previously disabled imported actions in 4.4.0?

Revision history for this message
In , xenoterracide (xenoterracide) wrote :

I just installed 4.5.0 and am pressing printscreen.... nothing happens

Revision history for this message
In , xenoterracide (xenoterracide) wrote :

I should note that I rm -rf ~/.kde4 before install 4.5.0 and the only settings I imported thus far have been konversation and ktorrent

Revision history for this message
In , mutlu_inek (mutlu-inek) wrote :

It works for me (I am also on KDE 4.5.0). I started with a new ~/.kde4 directory when I moved to the first 4.5 beta. I do not recall having added the shortcut, but I may be wrong.

I found the entry "Print Screen" > "Print" in System Settings --> Global Keyboard Shortcuts --> KDE component: khotkeys

Caleb, what setting is there for you? And does anyone know which config file might I want to remove and restart KDE to reset this specific setting? I want to make sure I did not add this myself.

Revision history for this message
In , xenoterracide (xenoterracide) wrote :

I have a 'printscreen' entry... (actually 3) but I'm pretty sure I added all 3 myself in custom trying to get it work. I also deleted them in custom but it still show's 3 of them. no 'Print Screen' Entry. Even if I added it... unless I did something wrong adding a custom keyboard shortcut it wouldn't work.

Revision history for this message
In , karaluh (karaluh) wrote :

(In reply to comment #65)
> I have a 'printscreen' entry... (actually 3) but I'm pretty sure I added all 3
> myself in custom trying to get it work. I also deleted them in custom but it
> still show's 3 of them. no 'Print Screen' Entry. Even if I added it... unless I
> did something wrong adding a custom keyboard shortcut it wouldn't work.

I also don't have anything "Print Screen" related in khotkeys component.

Revision history for this message
In , Mr. Anderson (walch-martin) wrote :

Finally, it is working again now with KDE 4.5.5 and after removing some files in ~/.kde4/share/config. :)

Changed in kdebase:
importance: Unknown → Medium
Revision history for this message
In , karaluh (karaluh) wrote :

I still don't have working Print Screen key. Can anyone tell me how to fix it?

Revision history for this message
In , Rolf Pedersen (rolfpedersen) wrote :

(In reply to comment #68)
> I still don't have working Print Screen key. Can anyone tell me how to fix
> it?

It has been working without further intervention from me since I last posted to this bug. Currently, in KDE Version 4.6.5, I have the following configuration:

Systemsettings (Configure Your Desktop) > Common Appearance and Behavior > Shortcuts and Gestures > Global Keyboard Shortcuts > KDE component: khotkeys (from drop-down menu) > PrintScreen

I can click on PrintScreen and it expands to Default: None and Custom: options. I can select Custom, click on the adjacent button, which shows the default, none, and get prompted for "Input ..."

Here, I press the PrintScreen/SysRq button and that becomes the khotkey shortcut for ksnapshot. hth.

Revision history for this message
In , karaluh (karaluh) wrote :

(In reply to comment #69)
> (In reply to comment #68)
> > I still don't have working Print Screen key. Can anyone tell me how to fix
> > it?
> Here, I press the PrintScreen/SysRq button and that becomes the khotkey
> shortcut for ksnapshot. hth.

Yes, it did help. I had to remove a conflict with kmenuedit as an additional step.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.