fsrunner for KRunner

System Runners

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

20
8 .3
Description:

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.
Last changelog:

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.

C

andersaa

11 years ago

that's not to 0.3 seconds, that's by 0.3 seconds, but I am atleast working on things! ;)

Report

hash87

11 years ago

About the kmail issue - looks like it was just a coincidence. I've turned on scan on $HOME rebooted and kmail didn't crash. So sorry for wasting your time and thanks a lot for help!

I look forward to new version of fsrunner. Keep up the good work!

Report

C

andersaa

11 years ago

oh, and dont compile with debugging, it adds a lot of safety checks.

See if that reduces the time it takes, it should, a lot.

Report

hash87

11 years ago

Database entries count is 2293.
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

C

andersaa

11 years ago

Added some new code now, to cache more in memory during the scan. It upped the memory usage by about 3mb on my system (6000 entries monitored), but it's only during the scan.

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

C

andersaa

11 years ago

Can you turn off scanning files in your mp3 directory and see if that changes the scan speed at all? (I'm hoping it won't).

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

C

andersaa

11 years ago

I considered adding it as an option, but I dont wanna start putting in options 99% of the population wouldn't know what to do with.

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

11 years ago

I've tested few values and 100ms seems most reasonable for me. CPU usage is about 10-15% in 1core (krunner+mount.ntfs-3g) and disk usage is not so noticeable. I don't mind waiting a little bit longer for fsrunner to look for changes. Maybe msleep could be added as an option so that everyone could set it to the value they want?

Report

C

andersaa

11 years ago

a forced delay between folder scans is now implemented in svn, should make scanning your ntfs filesystem usable.

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

11 years ago

I've tested running scan on mp3 directories with files turned on and off. There is no (or not a big) difference in scan time.

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

C

andersaa

11 years ago

I'm running a profiler now, and I'll add some code to be nicer on slow filesystems, such as a static pause between directories. Although you might wanna open a bug about that on the google issue tracker so I dont forget.

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

C

andersaa

11 years ago

Ah, yeah, ntfs scanning might take a lot of resources, but that's not really something I can improve, it's ntfs being incredibly inefficient, and even if the scanner is running on low priority the filesystem doesn't have any priority levels, so it will suck up a lot of resources.

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

C

andersaa

11 years ago

The scanning thread is on nice priority, and ionice is also used.

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

C

andersaa

11 years ago

0.3 out, has action system and internal changes that should improve scanning performance a bit.

Report

C

andersaa

11 years ago

Added a little usage page with some basic screenshots.

And yeah, I know I'm lucky there isn't capital punishment for poor web design.

Report

dovidhalevi

11 years ago

How do I run it?

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

C

andersaa

11 years ago

You install it, open krunner's configuration, enable it and change the configuration of what directories to monitor there.

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

11 years ago

I have not found such a item in the system configuration.

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

C

andersaa

11 years ago

You should have these files installed after a sudo make install:

/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

11 years ago

OK. Did that. I had other stuff going off local and things should play from local (but a path variable needs be set up, I suppose, for krunner to do this as well).

So on new login (I assume new krunner as well), I still have no reference to fsrunner in desktop search or services.

Report

C

andersaa

11 years ago

I just realized you said no referance in desktop search, this isn't related to desktop search, this is a krunner.

Click alt+f2 to open krunner, and the little configure symbol on the left side to enable and configure my plugin.

Report

C

andersaa

11 years ago

You enable the fsplugin, add some directories in the configuration for the plugin, click alt+f2 to bring up krunner and type in a search term.

Report

dovidhalevi

11 years ago

Hmm. Quite a number of goodies hidden behind the button that one cannot even see over the default color of the thing.

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

C

andersaa

11 years ago

hm, if those files exists kde should pick then up.

Which version of qt and kde are you running?

Report

dovidhalevi

11 years ago

I am running qt4.4* off Debian Sid.
I am running kde4.2 off Debian experimental.

Report

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.

12345678910
19
product-maker Henri Sep 21 2013 9 excellent
product-maker Zipristin Aug 10 2013 9 excellent
product-maker xpt Jul 18 2013 9 excellent
product-maker onliner Feb 21 2013 9 excellent
product-maker gvvsss Feb 08 2013 9 excellent
product-maker nsaje Jan 30 2013 9 excellent
product-maker jaitrum Nov 28 2012 9 excellent
product-maker Schiwi Nov 12 2012 9 excellent
product-maker skarapat Oct 26 2012 9 excellent
product-maker kalmar Oct 07 2012 9 excellent
product-maker cichys Oct 05 2012 9 excellent
product-maker RGBkde Oct 03 2012 9 excellent
product-maker bsidb Aug 29 2012 9 excellent
product-maker lionhater Aug 12 2012 9 excellent
product-maker soulspit Oct 03 2011 9 excellent
product-maker unhammer Sep 20 2011 9 excellent
product-maker OdinEidolon Feb 01 2011 9 excellent
product-maker pvt14 Sep 29 2010 9 excellent
product-maker adaptee Sep 23 2010 9 excellent
Be the first to comment
Zipristin
Aug 10 2013
carlcarl
Feb 16 2013
gvvsss
Feb 08 2013
lei00
Nov 27 2012
cichys
Oct 05 2012
RGBkde
Oct 03 2012
bsidb
Aug 29 2012
MorGothmog
Jun 28 2012
OdinEidolon
Feb 01 2011
tibot
Sep 08 2010
EinfachToll
Sep 05 2010
tomatz
Dec 20 2009
Samt43
Oct 30 2009
warnec
Aug 23 2009
jota
May 19 2009
Nirf
May 14 2009
deabru
Mar 12 2009
dscheapel
Mar 12 2009
hash87
Mar 09 2009
dgvirtual
Mar 03 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.7.5
updated Oct 03 2012
added Feb 26 2009
downloads 24h
1
mediaviews 24h 0
pageviews 24h 7