LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-12-2008, 08:41 PM   #1
JazzItSelf
Member
 
Registered: Oct 2003
Location: Boston
Distribution: Slackware64-current
Posts: 44

Rep: Reputation: 18
ksnapshot opening without pressing prnt scrn


Hey all-

I have a problem in which ksnapshot opens as soon as KDE starts up. Then it opens again, and again, and again, and again... It seems that it will continue opening windows indefinitely.

My first thought was that the key was stuck, and to this end I tried two things. First I tried to disable ksnapshot from launching when the key is pressed (by going into the control center, regional & accessibility, input actions and deleting the "preset action" associated with ksnapshot). This was quite difficult as the creation of all of these windows was sucking down a lot of CPU time. Needless to say, this did not solve the problem.

The second thing that I tried was using the showkey utility to determine if the key was actually being pressed. showkey doesn't seem to indicate that any keys are stuck. It tells me when I press the print screen key and when I release it.

So, it seems that something else must be starting ksnapshot. There's nothing unusual in /var/log/messages, /var/log/syslog, or /var/log/Xorg.0.log

Anyone have any ideas regarding what might be causing ksnapshot to start and how I might be able to disable it?

Thanks,
--Chad
 
Old 04-12-2008, 09:51 PM   #2
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Check for a link in $HOME/.kde/Autostart. Also try exiting KDE without saving the session.
 
Old 04-13-2008, 01:35 PM   #3
JazzItSelf
Member
 
Registered: Oct 2003
Location: Boston
Distribution: Slackware64-current
Posts: 44

Original Poster
Rep: Reputation: 18
Thanks Woodsman, that pointed me in the right direction.

It seems it was a session problem. I'm not sure how I managed to create a session with a few hundred instances of ksnapshot, but it seems I did.

KDE was too busy trying to restore them all to actually let me log out, so logging out without saving the session wasn't an option. I ended up removing the "ksmserver" file and the "session" directory from "~/.kde/share/config". This removed the malicious stored session causing KDE to start a fresh one instead of restoring the old one.
 
Old 04-13-2008, 11:18 PM   #4
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Quote:
Originally Posted by JazzItSelf View Post
Thanks Woodsman, that pointed me in the right direction.

It seems it was a session problem. I'm not sure how I managed to create a session with a few hundred instances of ksnapshot, but it seems I did.

KDE was too busy trying to restore them all to actually let me log out, so logging out without saving the session wasn't an option. I ended up removing the "ksmserver" file and the "session" directory from "~/.kde/share/config". This removed the malicious stored session causing KDE to start a fresh one instead of restoring the old one.
Ahh! KDE DOS attacks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you turn off KSnapshot? kev19 Linux - Software 2 07-14-2007 04:41 PM
KSnapshot failed to start satimis Fedora 0 05-20-2006 07:34 PM
How do I find and install KSnapshot barabus Linux - Software 3 05-13-2005 07:55 AM
ksnapshot won't print and save tiang_ono Linux - Newbie 1 05-13-2004 12:13 AM
Prnt Scrn psyklops Linux - General 2 09-28-2003 07:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration