
fsrunner for KRunner
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
FSRunner is a kde runner, the idea is to give you instant access to any file or directory you need. As a lot of time is spend walking through directories, you should never need to walk through 8 directories to get to a location you already know where is.
The homepage at http://code.google.com/p/fsrunner/ has a howto with pictures.
Example usage: you can configure it to scan $HOME, with a depth of 3, and ignore files. And then scan Desktop, with a depth of 1, and include files there. If you have the file Desktop/TODO, you can then write todo in krunner and it will find that file. It also allows using * in searches.
If you've had the action system enabled at all, let me know here or in the bug tracker and I'll get it to usable state. I know it's broken, but I've been busy and I know nobody who uses it.
PLEASE report all problems on http://code.google.com/p/fsrunner/issues/list , if you dont tell me it's broken I can't fix it.
Please vote me up, OR tell me how this isn't practical to you. Because at this point I can't live without it.
8 years ago
Been far too busy for far too long. Atleast getting critical bugfixes now!
Fix bug causing crashes when conflicting with other krunner plugins.
8 years ago
Been far too busy for far too long. Atleast getting critical bugfixes now!
Fix bug causing crashes when conflicting with other krunner plugins.
andersaa
12 years ago
Report
hash87
12 years ago
I look forward to new version of fsrunner. Keep up the good work!
Report
andersaa
12 years ago
See if that reduces the time it takes, it should, a lot.
Report
hash87
12 years ago
CPU - Pentium D 2,66GHz (2cores)
HDD - WD Caviar 250GB 7200RPM, SATA II, 8MB cache
I noticed that disabling scan for my mp3 directory on ntfs partition, decreases scan time a lot - to about 2-3seconds.
However i've got another issue, if i have scan set to $HOME, depth 3, files (true), kmail crashes on startup when KDE starts for the first time. Removing $HOME scan entry makes kmail to start without crash.
Report
andersaa
12 years ago
And this lowered scan time from 40 seconds (while profiling, running the same scan over and over for testing) to 7 seconds.
Should be worth 3mb extra memory usage during the scan I should think, all memory is cleared afterwards, and no more memory is used.
Report
andersaa
12 years ago
Also could you do a match for *mp3 and see if it takes forever to pull up?
Just realized there might be some potentional issues with very slow filesystems.
Report
andersaa
12 years ago
I'll put it at 200ms, it shouldn't really be a problem if a scan is a tiny bit slower on one selected scan folder.
Report
hash87
12 years ago
Report
andersaa
12 years ago
The hardcoded delay is 10ms between directories, if that's too little let me know and I'll up it. You can play with values in dirwatcher.cpp (search for msleep).
Report
hash87
12 years ago
Using *mp3 gives lots of results (as expected) and time before it shows up in krunner is about 2-3seconds, so nothing to worry about.
I'll open any other issues/ideas on the google issue tracker.
Report
andersaa
12 years ago
And the kmail one... I've never seen kmail crash and I've had this on for ages, and I got depth 3 and files true.
Report
andersaa
12 years ago
Scanning $HOME crashes kmail?.... that seems incredibly odd to me. What filesystem is this? And can you confirm that bug again, the only thing my code does is watch, it shouldn't affect any other program in ANY way.
Report
andersaa
12 years ago
This however for me takes about 1-2 seconds.
Could you try echo "select count(*) from entries;" | sqlite3 .kde4/share/apps/fsrunner/database.sql and tell me how many entries are in your database?
Also what kind of hardware is this on? Cpu speed/harddrive type or speed would be helpfull.
Report
andersaa
12 years ago
Report
andersaa
12 years ago
And yeah, I know I'm lucky there isn't capital punishment for poor web design.
Report
dovidhalevi
12 years ago
Also, as I mentioned, most distros have a maintained file-system index database always available. In debian, type command "locate pattern" to use it. Other flavors are around.
I do not know if there be an API for it but it could be run in QProcess as well.
Report
andersaa
12 years ago
I choose not to use locatedb, as it needs to be run on schedule, and is used more for locating files in root than in the users home directory. I also wouldn't want my root directory's files to show up, as I never need to access /usr/share/* from krunner.
Report
dovidhalevi
12 years ago
The fsrunner does not appear in either the services or the desktop search (which is dedicated to nepomuk and strigi, I suppose).
BTW, In terms of not using the locatedb because of a zillion hits outside the home directory, grep is your friend, i.e. locate pattern | grep ^/home/me (all set up without my having to type it, of course). But an independent fsrunner is also a neat idea!
Either way, many UI opportunities become evident!
Report
andersaa
12 years ago
/usr/lib64/kde4/krunner_fsrunner.so
/usr/lib64/kde4/kcm_krunner_fs.so
/usr/share/kde4/services/plasma-runner-fs.desktop
/usr/share/kde4/services/plasma-runner-fs_config.desktop
If you dont you might have missed CMAKE_INSTALL_PREFIX when doing cmake (see README, and remember to make uninstall to get rid of the files in /usr/local/* before the new install).
If those files are there, try restarting krunner (a simple killall krunner; krunner should do it).
Report
dovidhalevi
12 years ago
So on new login (I assume new krunner as well), I still have no reference to fsrunner in desktop search or services.
Report
andersaa
12 years ago
Click alt+f2 to open krunner, and the little configure symbol on the left side to enable and configure my plugin.
Report
andersaa
12 years ago
Report
dovidhalevi
12 years ago
Enabled and set it up. Now, how do I actually run any of these things?
... and yes, these setups belong in the system setup panel where one would expect to find them. Just as nepomuk has a panel, krunner should. To use them, seems there should be an icon for each plugin on the krunner box but krunner seems to only find/run executables and run its version of top.
Most of these plugins overlap various plasmoids and such. For example, one might use a dataengine monitoring the folders (I think there is one provided) and have a panel icon and kb shortcut to bring up a dialog to look for files.
Report
andersaa
12 years ago
Which version of qt and kde are you running?
Report
dovidhalevi
12 years ago
I am running kde4.2 off Debian experimental.
Report