indiv-screenlets-dev team mailing list archive
-
indiv-screenlets-dev team
-
Mailing list archive
-
Message #00199
[Bug 700342] Re: Mount screenlet blacklist option (with source)
** Changed in: indiv-screenlets
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of
Individual Screenlets Developers, which is subscribed to Individual
Screenlets.
https://bugs.launchpad.net/bugs/700342
Title:
Mount screenlet blacklist option (with source)
Status in Screenlets — individual widgets development:
Fix Released
Bug description:
I have slightly modified Mount screenlet to suit my needs... And I
think that this modification can be interesting to wider audience.
But, let me first explain: I have 4 hard drives in my machine and many
partitions. My desktop was cluttered with drive icons, so I turned
them off. But, I lost ability to unmount usb flash/hd disks from
desktop. Next thing, I tried various Mount screenlets, but none of
them had what I needed: display of only SOME of my drives.
So, I made a modification of Mount screenlet to include a blacklist
option for drives - what drives not to display in the list, and I also
added parsing of /proc/mounts to include drives that are not found in
fstab. To enable unmounting of USB flash disks, I also changed umount
command to gvfs-mount -u (I didn't test if this works for drives found
in fstab, as I don't have the need to unmount such drives).
I attached changed source to this e-mail, if something like this is
interesting to you. I still need some functionality in this screenlet,
like gksu prompt if normal user cannot unmount the partition and
ejecting of CD/DVD medias. I'm willing to solve this issues too, but I
guess I'll need some guidance, as how to detect if fstab/mounts entry
is CD/DVD, etc.
I don't know how to make patch files, so I'm sending complete modified
file. To test it, just copy Mount folder to Mount2 (I used this name
for testing), and place Mount2Screenlet.py instead of
MountScreenlet.py. You can find my (minimal) modifications using diff.
To manage notifications about this bug go to:
https://bugs.launchpad.net/indiv-screenlets/+bug/700342/+subscriptions