
Various KDE 1.-4. Improvements
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
KScannerButtons is composed of a daemon plus an optional KDE frontend for monitoring your scanner buttons so that actions can be taken in response to button presses, like:
- on touch copy
- email a scanned document
- run kooka
- scan & run the gimp (or krita)
It's composed of a daemon (sanebuttond), a frontend that will display an icon in the systray and a dialog box to configure and launch the daemon.
It is based on the button monitoring capabilities found in some SANE backends. The front-end is developped using Kommander.
It has been developped with the avision backend and an HP 5300C scanner.
From version 0.9.5, it has also been tested succesfully with the hp3900 and the plustek backends.
It may work with other backends also. Please report your experiences!
13 years ago
0.9.5:
Graphical interface
- added a button to refresh the list of scanners
- translated into spanish thanks to Jonathan Bravo Lopez
- translated into czech and brazilian portuguese thanks to Carlos Laué
Backends
- works also with hp3900 backend! (thanks to Jonathan Bravo Lopez)
- works also with the plustek backend! (thanks to Carlos Laué & Klaus Layer)
Command line
- add --help and --debug options to sane-nb-buttons. --debug will help at knowing the way the various backends handle the buttons.
- the test script path was not taken from the configuration. fixed. Improve this script.
- add information about using from the command line, debugging and testing new backends in README
- The daemon script is now located in ~/.kscannerbuttons
- Reworked the Makefile: "make install" now install the files in "standard" places. An icon is created in the K menu, under "Graphics" (/usr/share/applnk/Graphics/). "make kdeinstall" still exists.
- it was sometimes necessary to plug/unplug the scanner after stoping the daemon from the GUI. fixed.
0.9.4: Fixed the broken default actions created at first run. Note: if you need to reset the default actions, remove the section [/usr/local/bin/KScannerButtons.kmdr] (and entries below) in ~/.kde/share/config/kommanderrc with your favorite text editor.
Fixed the broken KScannerButtons.desktop launcher.
0.9.3: Some more bug fixes (test mode was no more working since 0.9.2). Enhancement of the test buttons script.
0.9.2: Finished the replacement of obsoleted Kommander APIs.
When run using ksystraycmd, there was a bug in the generated script. nothing happened when pressing a button. fixed.
Add a --script-arg command line switch to the daemon sanebuttond in order to pass additional arguments to the script. This is used by KScannerButtons to pass its dcop id. Better default sanebuttonsd.sh script
0.9.1: Little bug fix for those who had a more recent version of KDE than mine (replaced obsoleted APIs: addListItem(s) replaced by insertItem(s)). Also, the default 'one-touch copy' action was not actually printing, but saving into a postscript file. This has been fixed.
13 years ago
0.9.5:
Graphical interface
- added a button to refresh the list of scanners
- translated into spanish thanks to Jonathan Bravo Lopez
- translated into czech and brazilian portuguese thanks to Carlos Laué
Backends
- works also with hp3900 backend! (thanks to Jonathan Bravo Lopez)
- works also with the plustek backend! (thanks to Carlos Laué & Klaus Layer)
Command line
- add --help and --debug options to sane-nb-buttons. --debug will help at knowing the way the various backends handle the buttons.
- the test script path was not taken from the configuration. fixed. Improve this script.
- add information about using from the command line, debugging and testing new backends in README
- The daemon script is now located in ~/.kscannerbuttons
- Reworked the Makefile: "make install" now install the files in "standard" places. An icon is created in the K menu, under "Graphics" (/usr/share/applnk/Graphics/). "make kdeinstall" still exists.
- it was sometimes necessary to plug/unplug the scanner after stoping the daemon from the GUI. fixed.
0.9.4: Fixed the broken default actions created at first run. Note: if you need to reset the default actions, remove the section [/usr/local/bin/KScannerButtons.kmdr] (and entries below) in ~/.kde/share/config/kommanderrc with your favorite text editor.
Fixed the broken KScannerButtons.desktop launcher.
0.9.3: Some more bug fixes (test mode was no more working since 0.9.2). Enhancement of the test buttons script.
0.9.2: Finished the replacement of obsoleted Kommander APIs.
When run using ksystraycmd, there was a bug in the generated script. nothing happened when pressing a button. fixed.
Add a --script-arg command line switch to the daemon sanebuttond in order to pass additional arguments to the script. This is used by KScannerButtons to pass its dcop id. Better default sanebuttonsd.sh script
0.9.1: Little bug fix for those who had a more recent version of KDE than mine (replaced obsoleted APIs: addListItem(s) replaced by insertItem(s)). Also, the default 'one-touch copy' action was not actually printing, but saving into a postscript file. This has been fixed.
dglent
13 years ago
Report
daller
13 years ago
It's a great app, but it would be nice if it was integrated into Kooka by default!
Report
jice
13 years ago
I won't integrate it myself as I don't have the time, but you can use kooka in the configuration in order to scan with kooka when you press a button.
bye
Report
crmandal
13 years ago
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?
Report
crmandal
13 years ago
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."
Report
jice
13 years ago
Report
jice
13 years ago
I think the newly published version may solve your problems.
If I'm not wrong, your scanner uses the plustek backend, which works now (as said one of my users).
If you still have problems, please read the README file, where I explain how to test the buttons with the --debug command line option.
bye
Report
mononoke
14 years ago
and, are there actually any sane-devel packages, or do you mean the "sane" backend package as devel package for manual compilation, also, "make" doesn't work at all:
make: Für das Ziel »all« ist nichts zu tun.
why aren't there any rpm-packages for easily install/uninstall, at least src-rpms. sane-devel packge doesn't exist for current "sane-1.0.18-34" at all.
any way to compile kscannerbuttons for KDE 3.5.6 on OpenSUSE 10.2 AMD 64bit ???
:(
Report
mononoke
14 years ago
sane-devel doesn't exists. you need sane (backend).
i also need to install "libgphoto2-devel" and before running make, you have to run "make clean" to remove the precompiled INTEL binaries. if any other error message is shown, try to find out the missing devel-packages.
ah, i also installed "kommander", although i already had got kommander-runtime installed.
Report
jice
13 years ago
* the sane development package name depends on your distribution. On Mandriva it's called sane-devel (and probably on some other rpm based distros, but not OpenSuse I see).
* there is currently no "uninstall" target in the Makefile -> todolist
* why do you need libgphoto2-devel?
* kommander-runtime must be sufficient.
For the rpm/deb/other package, I had no time to build iot (at least rpm because I use a rpm distro), but I also put it in the todolist (though I've very little time at the moment)
Thank you for the compilation instructions ;)
Report
kindhornman
14 years ago
kmdr-executor --icon scanner /usr/local/bin/KScannerButtons.kmdr: No such file or directory
Yet the file KScannerButtons.kmdr IS there !! And I have Kommander editor installed. Using kde-3.5.4, OpenSuSE-10.1 and qt3-3.3.6-167
Report
jice
14 years ago
What's happening when you click on the installed shortcut?
I recall that you must unpack the archive in a temporary directory, and type, as your user (not root) : "make kdeinstall". This will copy files where needed, and create a shortcut on your desktop.
Report
cactus2000
14 years ago
I also needed to create a sym link to use 'sanebuttonsd.sh'.
But my scanner (Agfa SnapScan e25) is not supported, the 3 buttons don't seem to be detected... :-(
Any solution or future upgrade ?
Nevertheless, thanks for your job !
Report
kindhornman
14 years ago
Report
kindhornman
14 years ago
Report
bauerfichtner
14 years ago
Unknown widget function: 'clearList'.
->at startup
Unknown widget function: 'enableWidget'.
->when selecting scanner
My system is SUSE10.1, KDE3.5.4 and QT3.3.6
Report
jice
14 years ago
Did you install it with "make kdeinstall" under your user (not root)?
Report
bauerfichtner
14 years ago
Now I copied the programs and scripts to ~/bin/, no more error messages.
Report
router
14 years ago
Error in widget KSCannerButtons:
Unknown widget function: 'clearList'.
Error in widget scrScannerSelected:
Unknown widget function: 'enableWidget'.
I have the same problem with Kubuntu 6.10 and KDE 3.5.4
Report
jice
14 years ago
Please report if it works, and if yes, the brand and model of the scanner and the sane backend.
Report
neverrust
14 years ago
Error in widget KSCannerButtons:
Unknown widget function: 'clearList'.
Error in widget scrScannerSelected:
Unknown widget function: 'enableWidget'.
I can't select any scannerbuttons, but sane-nb-buttons finds all 4 at HP 5300c
Report
mrbit
14 years ago
gentoo 2006.0 kde 3.5.4. ????
Report
jice
14 years ago
Report
jice
14 years ago
It has been developped with Mandriva 2006, Kommander 1.2 under KDE 3.4.
unfortunately I'm on vacation and:
- I can't check the exact versions
- I won't be able to correct anything in the next 2 weeks.
Report
JordiP
14 years ago
Maybe a Qt upgrade is needed? Mine is 3.3.6
Anyway it "works", but nothing to do with my scanner. Brother DCP 7025.
It doesn't really have "buttons", but an on-screen menu that allows several actions, like to mail, to image and so on.
Should it work somehow?
OTOH, I get applet errors, like when clicking on Query # of buttons, or on Test buttons.
Both say:
"Unknown function group: 'Message'."
Report