#25 fstab mount plugin

open
4
2005-05-28
2005-03-02
No

It would be nice to see a plugin which allows the
placing of mounting icons on the panel. For example, a
CDROM icon, when clicked, would mount /mnt/cdrom
(defined in the config file). When mounted, the icon
should be full color, when not mounted, the icon should
display in a shaded (darkened) manner to clearly
indicate it is in an OFF state.

Going beyond simple cdroms, this is very useful for the
mounting of removable usb storage devices.

Xfce4's panel has a plugin which *sort of* introduces
this support. It's called a two-state launcher and you
have to write a shell script that the plugin refers to
when checking state or changing state. I think it would
be much preferred to have a plugin which does this all
natively and handles the greying out of icons
internally as well. An example of the configuration
would be:

Plugin {
type = mount
config {
item {
image = /usr/share/fbpanel/images/cdrom.png
tooltip = CDROM
dir = /mnt/cdrom
}
item {
image = /usr/share/fbpanel/images/usbdrive.png
tooltip = Flash Drive
dir = /mnt/flashdrive
}
}
}

Discussion

    • priority: 5 --> 4
     
  • Sy Ali
    Sy Ali
    2007-07-14

    Logged In: YES
    user_id=1735285
    Originator: NO

    Is this idea already contained within [ 1052387 ] Run window plugin ?
    http://sourceforge.net/tracker/index.php?func=detail&aid=1052387&group_id=66031&atid=513128

    I see that dclock allows this quite easily. It should be simple to implement a "run any application" plugin. Then the appropriate app could be called when a button is pressed in fbpanel.