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

KSnapshot DBus slotSave wait resource in bash script?

Tags: None
(comma "," separated)
kdeforumsuser2010
Registered Member
Posts
59
Karma
0
OS
Most of the information below regarding KSnapshot/DBus was found in the KSnapshot Help Handbook. DCOP was just replaced with DBus commands.

My question is: If snapshot Delay is set to 0, meaning "capture on click", when a bash script executes the slotGrab method, is there a resource the script can wait on so it knows when the user has clicked?

Code: Select all
 
snippet:
  qdbus org.kde.ksnapshot-${ksnapshotPID} /KSnapshot setGrabMode 4
  qdbus org.kde.ksnapshot-${ksnapshotPID} /KSnapshot setTime 0
  qdbus org.kde.ksnapshot-${ksnapshotPID} /KSnapshot setURL ...
  qdbus org.kde.ksnapshot-${ksnapshotPID} /KSnapshot slotGrab
  wait ??
  qdbus org.kde.ksnapshot-${ksnapshotPID} /KSnapshot slotSave


Any thoughts?

Thank you.

kdebase4-4.3.5
ksnapshot-4.3.5
opensuse 11.2
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
It appears that this isn't possible, however it could be that slotGrab() simply waits until the user has made a selection.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
kdeforumsuser2010
Registered Member
Posts
59
Karma
0
OS
Thank you.

Someone made a suggestion, that the script could possibly wait on the file creation (slotGrab, slotSave).


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], Sogou [Bot], Yahoo [Bot]