site  contact  subhomenews

Drive icons on desktop

May 31, 2008 — BarryK
Puppy 4.1alpha1 has drive icons in the JWM tray. The main problem with that is it is restricted to JWM. There are other window managers and trays that we can use in Puppy, such as OpenBox window manager and Lxpanel tray -- that is a very nice combo. We may have to move from JWM if its bugs are not fixed.

So, I have moved the icons onto the ROX-Filer desktop, similar to HotPup. My current implementation does not have all the bells and whistles of HotPup, and also has some conceptual differences. There is no common base of code.

Here is a snapshot:


My system, well, to give it a name, it's part of pup_event, only displays an icon for an entire drive, not for individual partitions. If any partition in a drive is mounted, a big "MNTD" is displayed on the icon -- so you know at a glance if a drive can be unplugged or not.
So far pup_event only displays icons for removable drives/memory on the desktop, though that could be extended to the internal drive(s). Also, the icons are currently limited to running along from left to right just above the tray.

I have updated these web pages with the latest developments for pup_event:
http://www.puppylinux.com/technical/module-loading.htm
http://www.puppylinux.com/technical/event-management.htm

Those pages refer to having a choice between having the drive icons appear in the tray or on the desktop, however the desktop implementation is superior and I may drop the JWM tray option.

Comments

Drive mounting
Username: kirk
If pup_eventd could update fstab, then Rox could handle the mounting and unmounting of non-removable drives (actually removable too), which is does very nicely. Then you could just put a folder on the desktop labeled storage or drives or something, that contain the mount points.

Re: Drive mounting
Username: nfisher
"I'd like to second what kirk just said about updating fstab. It is how I had planned to implement something similar in Grafpup because it also allows me to let non-priviledged users access removable media. Also, the code becomes simpler in my opinion if fstab is used. I have also the beginnings of an fstab manager which allows the user to specify any drives they wish to auto-mount at bootup, which is something that has been missing in Puppy for some time IMHO. The concept could be expanded somewhat to allow more controls, and still be less complex than Pmount.

Re: unplugging a drive
Username: BarryK
"dogine, The new system makes that super easy. If the drive icon has the "MNTD" text on it, then one more or partitions are mounted. You can see at-a-glance whether a drive can be unplugged or not. If a drive has one residual partition that cannot be unmounted as it is in use by Puppy, then you will get the yellow "MNTD". If you mount more partitions on that drive, "MNTD" turns green. So the principle still works -- it is still telling you that there are partitions you should unmount, when green, and the yellow text tells you that you should not unplug it at all. It is extremely simple to use, and I predict will be very popular with newcomers. The code is also very small, efficient and highly integrated into pup_eventd.

Mounted drives
Username: nic2109
"If a window has been maximised then they will be invisible until the window has been hidden. This is no great hardship but makes the mounted drive(s) information easy to forget about and overlook. How about a single task-bar icon that is present when any drives have been manually mounted which will be visible even when the desktop details are hidden? This would serve as a warning and prompt.

Mounted drives
Username: dogone
"nic2109 has a point. How about presenting drive icons in a window rather than on the desktop. The window: - appears on top when a new device is detected - appears on top when one clicks a related tray icon - can be managed like any window and tweaked via Event Manager options

Pmount pops up
Username: BarryK
"The Event manager GUI has a setting for Pmount to pop up if there is an event. It's either on or off, and when on Pmount will pop up whenever a pluggable block device is inserted or removed. I found that a bit annoying, so turned it off by default, but perhaps that can be finetuned somewhat, for example to only popup when a drive is inserted. Well, try out 4.1alpha2 and test it, see what you think needs to be improved.


Tags: puppy