ROX-Desktop drive icons: show free space in tooltips

Window managers, icon programs, widgets, etc.
Post Reply
Message
Author
amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#16 Post by amigo »

As far as getting free-space info into the tooltips for the icon, I don't think there is another way -unless one patched the filer itself to show such info for mount points.
Personally, I just use gtkdiskfree. It has a dynamic display, which means that it is also polling, but less expensively than a bash script would be.

The problem with using the tooltips is that the AppInfo.xml must be re-written every cycle and could be corrupted while doing so. I think a right-click action (to launch some indicator) would be a better solution.

Polling should be avoided like the plague.

Pelo

i use gtkdiskfree too with my Toutou Wolx 2014

#17 Post by Pelo »

i use gtkdiskfree too with my Toutou Wolx 2014
Attachments
kingston.png
(24.4 KiB) Downloaded 138 times

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#18 Post by sunburnt »

Amigo is correct as always. Avoid polling!
Sadly there is no common way to trigger other code like this.
Perhaps an inet type damon that polls /sys and /proc for triggers,
then reads a list of apps, etc. to activate or write to.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#19 Post by musher0 »

If you're a bit of a masochist, would the info given by partview make you happy? :roll:
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#20 Post by LazY Puppy »

In my T.O.P.L.E.S.S. LazY Puppy 5 Systems I had made patches of

- /usr/local/bin/drive_all
- /usr/local/pup_event/frontend_funcs

It is to enable/disable by the config files and has option to refresh/update manually by right-clicking the drive icon - besides some more options not yet in standard Puppy.

Works in all of my T.O.P.L.E.S.S. LazY Puppy Systems (tahr, unicorn, vivid, xenial, slacko - 32bit/64bit all WoofCE).

See attached images.
Attachments
Screenshot-2016-05-14-13-37-20.jpg
(38.94 KiB) Downloaded 94 times
Screenshot-2016-05-14-13-36-32.jpg
(23.69 KiB) Downloaded 97 times
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

Post Reply