An ebuild for kscannerbuttons, a button monitoring daemon for your scanner.
Created attachment 105442 [details]
initial ebuild for kscannerbuttons-0.9.4
this ebuild mimics the installation paths as found into Makefile (mostly)
there is some patching needed for moving the .kmdr script from /usr/local/bin (hardcoded paths) so I left it where it (initially) was.
originally, installing with the Makefile puts an .desktop file on ~/Desktop/ so it appear's on the installing user's desktop (and installs system-wide files using a kdesu-dialog) so installation is at the moment handled by the ebuild. I didn't want to write down a doins for each new locale the program might have (only french at the moment) but I did so.
the program works for me on amd64, originally is written for x86 so I've put both ~ARCH's flags.
Created attachment 105449 [details]
kscannerbuttons-0.9.4.ebuild: cleaned-up version
The first ebuild was buggy anyway. Now everything seems to work and install properly (no missing icons inside the program).
It seems to be ready to install more language files, no handwork.
Also cleaned up ebuild.skel comments (sorry!)
Created attachment 105451 [details, diff]
Created attachment 108429 [details, diff]
Fixes wrong ksystraycmd calling
This patch fixes the error message on startup:
/bin/bash: kmdr-executor --icon scanner /usr/local/bin/KScannerButtons.kmdr: No such file or directory
Created attachment 132161 [details]
Created attachment 132162 [details, diff]
I emerged kscannerbuttons using the kscannerbuttons-0.9.5.ebuild and the kscannerbuttons-0.9.5-build.patch. Executing kscannerbuttons results in a scanner symbol being shown in the taskbar. Clicking on this symbol leads to an error message stating: "Kommander file /usr/local/share/kscannerbuttons/KScannerButtons.kmdr does not exist."
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 20
Minor opcode: 0
Resource id: 0x6a00012
However, KScannerButtons.kmdr can be found here: /usr/share/kscannerbuttons/KScannerButtons.kmdr.
Is there something wrong with the patch?
Created attachment 161202 [details, diff]
Here's a patch which fixes the ksystraycmd problem when you also chmod KScannerButtons.kmdr 755 so ksystraycmd doesn't get confused by Kommander's warning dialog.
Created attachment 161203 [details]
Updated 0.9.5 ebuild to go with my patch
...and here's an ebuild which uses the patch and does the chmodding for you. I tested both and they work perfectly well.
Created attachment 161230 [details, diff]
fixes .desktop file provided
This patch fixes two bugs with the application shortcut:
The first bug was KScannerButtons not being placed into any category on the KDE application menu, now in Utilities.
The second bug was a wrong path, almost identical to the bug as described in comment #7, that happened when one tried to start the application using the menu.
Just thought I'd warn everybody. It seems that sanebuttonsd is triggering some kind of kernel memory leak on my system. (over 1GiB per week)
I'll update you when I can figure out what part of my kernel is leaky. The simplest way to check if you've got the same problem is to use the slabtop tool and check whether the number of sysfs_dir_cache entries is ticking up slowly but very steadily. (Exactly 111 leaked entries per slabtop update on my system)