Image 01
profile-image

dovidhalevi

David Baron Jerusalem, Israel
Plasma 4 Extensions
Telephony
Utilities
Various Games
test
Run Command

Plasma 4 Extensions 145 comments

by Emdek
Score 76.7%
Feb 04 2012
OK, quick-fixes enable me to see the text, that is, half of it. Problem is that the KHistoryComboBox hides parameters that could fix a lot of this.

Right now, the bottom half of (the lower) line of text, i.e. descenders, "g," is cut off. I tried setting margins and such, no help. This occurs on the input box and on the paths in the listbox. Listboxes can have variable heights, not KHistoryCombo... Krunner's widget will often show everything beautifully but sometimes will not expand the item heights but simply cut off the end of the text. The plasmoid's listbox shows 1 1/2 lines always. - Dec 18 2011
Correction to above: This is a KComboBox child so the two alternatives are in error. Only inverting to colors will work right now, I believe. - Dec 14 2011
To get rid of the bright white on white, I can to change both the m_comboBox windowtext (for the >) and the text colors to black. This also changed the history text color. So if I set the backgrounds to the plasma default (oxygen), the history becomes black on black. Fun--I do not know which parameter gives that history background gray on my plasma (only gray I see is the buttonbackground of the theme!).

Oxygen default text colors are bright white, apparently (and black for buttontext).

A more-correct work-around might be to set to the inverted color of the background (how?). Or maybe get away with not using the plasma::combobox at all and setting the m_comboBox palette from the plasma theme explicitly (or from the parent widget). Or KComboBox instead of Q?

BTW, the busy problem of my runner's config dialog was solved by making sure deleteLater was called when closing. I thought C++ itself would handle that but I guess C++ is not Java :-)

- Dec 14 2011
For the non-showing text, it is simply being shown (in my white on black plasma theme, but the combo-box text input background is white!) as a brighter white. You may need to set more palette items, maybe the bright text.

I used your palette code to set up my new menu, needed a button color of gray (but would be better some function of the plasma one--your "lighter" did not work. - Dec 08 2011
More ...

What textbox are you using? Text colors and entry options are strange, text does not really show up (white on white?) and again, no cursor in box--nothing to do with screen cursor.

I cannot get to my properties box because this is "owned" by krunner. If I kill krunner, it works just fine. Really "sharing" resources with krunner will be mighty tricky if it can be done at all. So an interface to runner properties dialogs will not work either.)

Actions need be explicitly drawn in your widgets but they are likely "owned" by krunner as well.

To really coexist and share, one probably needs access to krunner's display widget and put that one itself up from the plasmoid. Can it be done?? Yours has its strengths, however. I like the tooltips (krunner would not let me do that!) and having item icons only show on the focused widget is a lot cleaner.
- Dec 05 2011
Works fine. Folks who for whatever reason never touch krunner may well appreciate an applet alternative.

One quick comment: I might prefer an icon on the panel which I click to get the text box, maybe above it (extender?). No cursor shows in this text box and also, there is very little frame right click area for configs. You have no route to runner options at all that I can see and should probably implement in a future version (lift krunner's code).

I have a recoll-runner. The new version will have an (alternative) action. This icon did not show up in your applet. I also have an interface to the runner's configuration via createRunOptions which you do implement (please don't shoot or flame, plasma developer folks--this is a search runner so quicker access to tweaking is in order.) You give me the expected button-box with a message that the config dialog is already running or to that effect. My (admit: bastardized) config dialog access uses the standard KCMultiDialog.addModule which should be safe not be "busy." Works in krunner and I can use the changed configuration by simply deleting and or typing one character rather than starting over. - Dec 03 2011
Great! Please post. - Dec 03 2011
*****
-- Found KDE 4.6 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
CMake Error at applet/CMakeLists.txt:15 (add_subdirectory):
add_subdirectory given source "po" which is not an existing directory.
- Dec 02 2011
recollrunner

Utilities 49 comments

Score 76.7%
Dec 13 2011
0.4 might not have used QStringList.

That ../lib/qt4/include is strange. Are ALL your qt4 includes there? I certainly request others.

Try the include path just /usr/lib. This might get you in trouble with the other qt4 includes, however.

If all the others are in the more standard? /usr/include/qt4 ..., then maybe copy or synlink the file to there. Then it should play. - Dec 14 2011
OK. Once I have a Debian installation of KIO_Recoll ...
I get no unique C/R event, just a select event with selected method or default. Running the recoll UI and/or dolphin using kio_recoll can be added to the methods choices and they can be run from that dropdown for any selected recoll hit.

Alternatively or additonally, an item such as:
Recoll
Reported # results
Could be appended. As of now, this final item would appear first. Clicking that could default to one of the new methods.

What do you think? - Oct 19 2011
OK. How do I call it?
Typing recoll:/ does not produce a non-supported protocol error so that is a sign that I may have the kio for it. But I need some means of calling this with the search string.

Using recoll:/ in a command line dolphin call does produce an unknown protocol error. So this needs be installed. - Oct 18 2011
Question is what folder would be shown in dolphin? Hits can be all over the user home file system. Multiple instances?

Alternative might be to spawn the recoll GUI. This would have the results on its pane (BTW: might not necessarily be identical set--another issue). What would be gained by this? - Oct 18 2011
Krunner functionality is on clicking an entry. There may be several options for a particular item. What happens for recoll results depends upon the file's mime type. A pdf gets opened in a viewer, an odt in openoffice/libreoffice, a text file in a text editor and a folder in dolphin or such. Programs used can be set in system configuration.

The functionality you describe might well be good. Must remember that the directory structure is not flat and dolphin will show one or two directories which might contain some but not all the hits. In any event, this is a proposed functionality for krunner itself. - Oct 17 2011
The way this page or the email breaks this stuff up makes it impossible to read. What I do notice is that there are many many listings from the same file /home/denis/Documents/Redon/AIDE/Groupe. While a hypertext interface might be built to click on a reference and get to that instance of the text "gazette," this is not a good idea for krunner. Clicking here will open the file and you can take it from there.

BTW, fsrunner has not crashed so far on my box. It does need to be recompiled if that was not done for several kde4 updates. - Sep 22 2011
First of all, to compare entry in console with recollrunner, uncheck any options: Matching file names will only yield matching file names. For your test, make sure default query language is selected. Do not use any of the runner's own filters. If I remember (it has been a long while), I do not show multiple entries for one file. The unique file hits should correspond.

As for folder names, might check the code to see if I am skipping them in the runner. This would only be with the -f (file names only) option.

Also, I have not seen every case of how the CLI recoll output is formatted. I could be missing some entries due to some error in my parsing them. For this, give me specific examples. This is where direct programming of xapian might be better.

A problem might be strange permissions--a previous poster found divergent results due to this. Did not work well for one user, just fine for others. - Sep 21 2011
Fsrunner crash--This was an old problem. I am trying it again, see what happens. What version of KDE4 do you run? Appears to be working on my system but the crash was on KDE startup if I remember. Project might be dead but the sources are around to play with.

Recoll command line options are fairly limited:
-l, -o, -a correspond to the radio-buttons for their default query language, or, and.
-f looks for file names
-q is followed by your query
-t means no GUI so I use that and intercept the stdout listing and parse it.

The remaining recollrunner options are done in my code.

There is a major difference, apparently, between what is reported and how it is listed between the console mode -t and the GUI app. More data, such as search ranking, is available through the xapian library and used by the GUI but not reported by the text mode listing (so I cannot use it the way I run recoll).

The alternative would be to code the xapian directly as in the GUI. No guarantee, necessity, or desirability that the reported results would match tit-for-tat. This would give much more capability, might be overkill for a runner and would make it much larger as well. Theoretically, performance might be quicker but likely not a factor in the krunner operation. - Sep 21 2011
You might check out another runner: fsrunner. This one is designed for searching your home file system, filenames and folders (not content). - Sep 17 2011
Check the filenames option and place a pattern to match if you want.

Note that results shown from the recoll UI may be different than from the command line which is what I am using here. - Sep 11 2011
Runners do not store stuff in .kde4/share/config to my knowledge. Just go into the krunner config, find the recoll and check options there.

Some of them are CLI options along with recoll -t. Others are done in the runner itself (another reason why results can vary). The order of listing will be different as well--I have no sort option as of yet and "relevance" sorting is in Xapian/recoll code. - Mar 23 2011
Detect My IP

Plasma 4 Extensions 7 comments

Score 58.6%
Dec 09 2011
I am using kde from Debian Sid, probably 4.6. I have a 32-bit distribution (have not had the ... to change everything over to 64 bit my cpu supports). As Aaron Seigo suggests, these things need be compiled on on for target systems. Your .so is 64-bit, I assume? What CPU? Get the picture.

However, I DID compile it and it did not work as I described. - Dec 03 2011
Tried the installer. Unzips to an installer folder, please choose better name :-). Ran the script. After plasma restarts, still cannot access the plugin. One can run kbuildsycoca4 rather than the very disturbing but OK restart.

Tried building from source. Now I can access the plugin but when I try to use it, get error cannot find component detectmyip. Also, please use a folder (you did on the installer). - Dec 02 2011
Apper

System Software 224 comments

Score 69.6%
Jan 08 2013
How can I get screenshots to you?

There are two: One is the dependency error--shows up immediately before beginning update cache and again after it fails. As opposed to what I originally suggested, this is not the cause of failure.

The second is failed read/gets that will also appear in apt. Maybe I have too much junk in my sources.list. However, apt and synaptic will still show available upgrades. Apper simply shows the "badge."

In other words, the errors are real, either mine or Debian's fault, but should not stop the program. Probably a quick fix of showing the list as it is, even if errors were reported. - Oct 13 2011
OK.

Try apt-get -s upgrade, will work fine.

Try apt-get -s dist-upgrade will die with the same error as did apper's updating cache. So maybe, the update level needs be an option here.

Synaptic seems to avoid this problem in this manner. - Oct 13 2011
Problem 3: A package with dependency problems (and these are very often around!) stops the whole thing dead. The "update cache" (why not use ones already available?) will not get updated. - Oct 13 2011
This would be a showstopper, especially for those running Debian unstable and such. Apt-listbugs (as well as similarly implemented apt-listchanges) can be life savers. - Oct 13 2011
Two little problems so far:

1. Is packagekit is not around, gives "unknown errors" for every click. The cmake should check for more than the libs. If this is not practical, the program should say "Please install packagekit" and gracefully exit.

2. Unlabeled notifications are spawned by the program's background processes. I suspected the worst. - Oct 13 2011
KDroid

Telephony 40 comments

Score 72.2%
Sep 04 2011
Using USB, this is problematic, obviously. No Adb and probably no phone. Once the app has started, one must quit it in order to forward the port, that is, after connecting the phone.

So some ideas? Maybe (after a delay), put up a dialog: connect phone, start adb, forward port. Only connect to the port after clicking OK.

Note that as a regular app, there should be no problem. As a plasmoid, the init must return so a timer would be started instead and after the delay, put up the dialog.

If not on localhost/usb (these might not necessarily imply each-other!), a dialog to connect the phone could be shown if connection not achieved. Cannot do it this way with the usb because the port will be busied. - Sep 08 2011
Now that I can get them, now to make use of them. Quickest might be an incremental search. Since there are several fields, the search might be "ored" -- the KDE addressbook works like this -- or an option to select. - Sep 07 2011
Here's the rub: (Note: I had long since stopped using the email program that comes with android. K9 is much better, almost like the desktop apps. So the contact program is next. Trying something called "go." This let kdroid get all the contacts.)

Contacts are in three, count 'em, places: The "phone," the SIM and with gmail/google. Kdroid found the four contacts I had added which were on the "phone." Import/export options only worked one at a time so consolidating them (to where?) was impractical (I copied the four to the SIM, no help for kroid). "Go" let me copy everything onto the "phone." It does backups to the SDcard so that was not the "phone." The original contacts app imported/exported selected contacts to and from SIM or SDcard and created empty groups on the "phone." Whatever...

Can kdroid pull off the SIM as well? As for stuff in google's cloud, no point in going through the phone--akonadi support for google has been requested many times already. - Sep 06 2011
1. Tray-icon: Assuming I am using the app to operate something on the phone, i.e., send sms, dial (should be easy to do as well), etc., I need the icon visible. Some examples: A printer plasmoid is on kde-look which hides its icon and shows it when printers are in use (except he does not use the system tray and wastes even more real-estate). Hplip, HP's tray-icon applet, does not quite work. The stock KDE device handler aplet does it right, stays out of the way until relevant. Kdroid, I believe, should stay visible but this could certainly be a user option. As a plasmoid, it could be placed anywhere and toggled.

2. Strange bugs and variations: The main problem with android is every device becomes it own show. Worse than testing web-pages on everyone's browser!

3. Unless one buys an atrix and the laptop dock, there are a few ways of using the phone from a computer. Kdroid can view (at least some) contacts, choose numbers and send sms. There is android-screencast (java code is on google) which shows the phone's screen in all its glory, can explore the file system and open a URL on the phone. For a rooted phone, it offers full mouse and keyboard control! There are two wifi-keyboard apps on the market: one uses port 8080 rendering it useless on most systems. The other uses a browser on 7777 and offers line or live text entry to running apps and incidentally, keyboard control of non-rooted!! phones using arrow keys for navigating the desktops and function keys for the four buttons. With this and screencast (not so nice split in two apps and the keyboard visual cues are there but weak), I can almost use the non-rooted phone from the computer. The wifi keyboard is on sourceforge on another of these (most market apps are not opensource).

Now, the plasmoid: The screen, the sync, the keyboard control, and on a rooted phone, full mouse control. Click the icon, show he screen. Some UI to show, use contacts but this can actually be done on the screen as well. Contact usefulness comes with akinadi. Sms could also revert to the screen, the keyboard feeding the text. Game? (If I succeed in retiring now, I would be interested in participating.) - Sep 05 2011
Got it!

The Android did weird things to the format of the name fields of contacts imported from previous telephone. The four have in common: NO characters other than letters, spaces, period (and I guess comma would be ok as well). Older ones have semicolons (don't ask me why) and slashed numbers, i.e. /1.

Since such symbols could be manually entered as well, there is no reason they should be excluded. Take text received as-is.

Any ideas on how to bulk-edit the cruft would be welcome, maybe some combo of google and plaxo. But I should see them all, not just the four. Interesting. - Sep 05 2011
Got some results! Restarted the adb and successfully forwarded the port.

Sent SMS to my phone. RECEIVED two of them! Sent to my daughter's. Received that also so I guess the android message app shows a copy of sent message as well. In the "sync" boxes, get the same "unknown" which means no contact with this number (see below) but outgoing confirmations and incoming for mine, and the text. Bravo.

Now the sync. I have lots of contacts including myself and my daughter. The sync yielded only four contacts. The only criteria I can think of as these are relatively recent or recently called but even these should yield many more items. Since these are bare phone numbers with no addresses or other information rather than the contact name, nothing appears to the right but I have no accesses other than the SMSs to test.

So question is what indeed am I/should I be syncing and against what since sync implies two lists. I am obviously not viewing my contacts list. - Sep 05 2011
Some nice changes!

APK: Button is, as suggested, good addition, though text is confusing. "start" or "stop" says what I want to do on press. "startet" (should be "started") is current status. But after first use, I know what is happening. Did get a (bogus?) android process stopped unexpectedly error. Since app did not close, must refer to the service that I manually stopped so you may need to set some flag at this stage since there is no error.

KDE:
1. Set to localhost. Adb devices finds phone, adb forward tcp:48564 tcp:48564 says cannot bind port. Does the app do this for me? What if I am not using usb?
2. Tried it anyway. Sent sms to this phone. Should fail. Got notification "unknown number" and the text in sync boxes and in KDE notifications. Can the program detect individual stati such as "busy," "not available," etc?
3. Sent two sms to family phones. No error or status returned.
4. Started sync. Button is now grayed but nothing has happened in a long time. No notifications.
5. Icon is now among the "hidden" system tray icons so does not appear unless I request these. Probably not appropriate.
6. System-tray might be an option. The app might be better a plasmoid (these can go to system tray now and take up less space there). Now, the akonadi data-engine is available and contacts can be synced to KDE. - Sep 05 2011
If the problem be the router, makes no difference whether UDP or TCP, unless TCP gives better debugging opportunity.

However, since using Adb caters to TCP, using USB port forwarding instead of WIFI would seem to need TCP. I am probably not the only one with a router giving problems for this and similar applications. - Aug 29 2011
You are the first I encountered using UDP. So I switched the firewall and the router to UDP. Still get unknown packet. As I said, not every NAT router will work which is why I usually need USB for such things. Adb forwards TCP.

Yes, I noticed the icon. There are many KDE icons which do not show up nicely on the most common "oxygen" style black backgrounds.

I will try the git and see if it works. - Aug 28 2011
Service now runs fine, restarts when turning on the phone without intervention. However, I still have no communication. If the phone "responds" to packets sent by the kde kdroid, it returns "unknown packet."

GUI suggestion:
1. Have a start and stop service button (and possibly auto-restart on phone boot) button on the apk app so users know what they are doing.
2. More informative icon on KDE service bar, i.e. picture of cell-phone (three such icons on "devices"--actually on black background, these would only show the blue rectangle seen now) or an android symbol .
- Aug 28 2011
Look at my speakerphone applet. Seamlessly integrates akonadi and its own address books (uses the dataengine so is plasma-specific though coded straight-up qt). Kdroid could become an plasmoid.

For now, let's get the thing to work reliably on more phones :-) - Aug 24 2011
You might take a look at other opensource apps that run services for wifi or usb access.

Another approach is to have the kde app load a serving app to the phone, ala androidscreencast (usb, coded in java).

Some of these thingies do require a rooted phone. Some, later on, have found that not really necessary. Those "development" phones come rooted. - Aug 24 2011
OK, got it to install. You might need to demand permissions so that the normal installer's dialog can ask. Customary for Android apps--do it before posting to the "market."

Running this does not seem to start any service on the phone. The KDE app fails after a time-out with device not available. Phone app will crash after a while. Do you depend upon a rooted phone? - Aug 24 2011
Trying to install to LG-Optimus phone which is Android 2.2

This occurs with your apk and one I made with Android 2.2 SDK.

~$ platform-tools/adb install IdeaProjects/KDroid/KDroid.apk
892 KB/s (51842 bytes in 0.056s)
pkg: /data/local/tmp/KDroid.apk
Failure [INSTALL_FAILED_OLDER_SDK]

Once working, might enable USB operations (adb can probably do this anyway!) since NAT routers may block wireless operation of such service. - Aug 24 2011
krunner-googletranslate

Web Runners 12 comments

by tcat
Score 76.7%
Aug 09 2011
how do I use it? - Aug 10 2011
Plaspool

Plasma 4 Extensions 17 comments

Score 67.1%
Jun 24 2011
Download link broken! - May 22 2011
First actual printing on the RC.

One page job. Two of them came up in box, maybe not the applet's error.

The first one printed, box updated as completed. I canceled the other one, no change in box. Attempted to resume, got cannot resume, no file.

CUPS only showed the one completed job, no canceled or stuck job.

So need some means to refresh the box manually and a cancel should show (did not in previous version). Doing something from CUPS should update the box and visa versa (it does).

As previous suggested, the system-bar is the place for this applet.
- May 02 2011
The rc is what I have.
On current login, it came up sans icon with the hide icon button checked. So the problem is within one session. - Apr 30 2011
Got the ORC version from the site.

New job options show up on box, have not tested them yet.

The hide/transparent icon options and the cancel command option (what is this for?) do not work and are not kept. Clicking either icon option gave me a smaller icon (the size that would be shown on the system-bar where this applet really does belong. Thanks for using the "normal" icon :-) - Apr 29 2011
CUPS documentation is scarce. Sometime this summer with some time, I might have tried to do this very thing so thanks for the great start. As I said, hplip sources will have what you need.

Icon in "device/printer" is the one that shows on the add widget menu. There is also a "device/laser-printer." There are several others under "actions/...." Simply KIcon("printer") is be sufficient. The icon will come from the user's KDE style.

Icon may be grayable if inactive. Another alternative would be to blink "document-print-direct" with "document-print" when active. Look at my phoneapplet sources.

If a user likes and chooses the monochrome style, OK, but if not, the user will find those simply uuuugggglyyy. - Apr 23 2011
First printing experience. Works like a charm. I get other notifications as well: flagged in KDE's notifications panel applet or plasmoid from the still invisible hplip panel applet.

After 10 1-page jobs, the printer stopped, busy error. The hp-toolbox let me restart the print queue (but I ran it from command line--their applet should have appeared before now!). Your applet seemingly let me cancel the non-processing jobs (might not have really needed to do so!). Its display did not remove them, however. Nor does it clean up or let me clean up completed jobs.

After having printed everything successfully, the icon (yuk!) still shows, displays completed and the four pending jobs that I seemingly canceled (including the one that stuck with printer busy).

So, some more functionality:
1.Start-stop-queue, other such CUPS functions. Will be very appreciated.
2. More info that just pending or completed, minimally some error flagged.
3. Sort, clean its display? Removing completed jobs would be a setup option and a clear button might be added to the box.
4. Some way of getting rid of stuck jobs without rebooting and you have a Nobel prize :-)

Hplip's modules code will probably give you every clue you need. Must be using dbus for its notifications to propagate to KDE. Will have all needed calls to CUPS and then some!

The icon: There are much nicer ones and those would be automatically taken from the user's plasma/KDE style! Look at my (very old) code of the speaker-phone applet for what can be done with icons showing state/status and such. The width is indeed KDE's problem--the only way to save real-estate is to go on the system-bar--smaller icons and control of applet visibility.
- Apr 22 2011
I have 4.6 from Debian experimental-snapshots running--more stable, quicker than the 4.4 on unstable. It has a workable printer setup in systemsetup. I have not printed anything since upgrading so I do not know if it goes beyond setup dialogs. User job control options are included. - Apr 21 2011
I placed the applet on the panel. It takes up two slots but shows no icon. What you propose is fine if the inactive applet does not take space. This can be done on the system bar, maybe not on the panel. So two different printer icons, one active, one waiting, might be needed (if inactive, how would one get to the properties if no icon or trace appears?). In any event, two blank slots is a bug. - Apr 21 2011
Many folks looking for a replacement for the panel applet. Nothing wrong with using QT objects--KDE itself obviously does this! For the future:

1. BUG: Needs iconized icon for panel usage. Should indicate active job. Current blank is also too wide.
2. Option to place on system subpanel and to hide if inactive. Check hplip (from HP, on Sid) which does this (or claims to) for HP printers?
3. Meaningful setup options, i.e. selection of printer(s) to monitor (checkbox list).
4. Tooltip of active jobs when iconized.
5. Drag and drop to icon or box to print a file (in KDE-printable, i.e. pdf, format). - Apr 21 2011