Image 01
profile-image

crmandal

C Mandal
KScannerButtons

Various KDE 1.-4. Improvements by jice 30 comments

I found that /usr/local/bin/sanebuttonsd does recognise button presses. When called with a script (--script tmp/echoArgs.sh, my own simple script to echo it command line), it passes the argument '-button' but nothing more.

I edited ~/bin/sanebuttonsd.sh to introduce the case:
*)
dcop $DCOPID KommanderIf "setText(QString,QString)" sb "Default action: Running one-touch xsane... Close application before pressing another button."
xsane $SANE_DEFAULT_DEVICE
dcop $DCOPID KommanderIf "setText(QString,QString)" sb "done. Scanner is ready."
;;

Now xsane starts when any of the buttons is pressed.

How do I get it to identify the particular button that was pressed?

Also, I do not get to see any of the messages that should possibly be shown, such as: "Default action: Running one-touch xsane... Close application before pressing another button." or "done. Scanner is ready." - Mar 29 2007
KScannerButtons

Various KDE 1.-4. Improvements by jice 30 comments

The program runs, docks into the system tray, etc, but fails to detect that scanner buttons have been pressed.

Mine is KScannerButtons 0.9.4

I have a Canoscan LiDE 25. It works fine with xsane.

The `About' says:
This program allows your computer to manage the buttons present on most of scanners (when the buttons are recognised by your SANE backend)

How do I know that the buttons are recognised by my SANE backend? - Mar 29 2007