media:/ shows unnecessary media
Rajeev J Sebastian
rajeev_jsv at dinamis.com
Wed May 25 04:25:17 CDT 2005
On Tuesday 24 May 2005 7:17 pm, Kari Pihkala wrote:
> Hi,
>
> yes, it is possible to rename the names using dcop! I wrote a perl
> script to do that. Here's how it looks.
Excellent work !!
> The old (on my machine with 3 windows partitions, swap & boot partition):
> Floppy Drive
> 1.0K Media
> 17G Media
> 32M Media
> 4.2G Media
> 542M Media
> 8.4G Media
> 9.7G Media
>
> The new:
> Floppy Drive (fd0) (/media/floppy0)
> 1.0K Media (hda3) (unknown)
> 17G Media (hda7) (/wind)
> 32M Media (hda2) (/boot)
> 4.2G Media (hda1) (/winc)
> 542M Media (hda6) (swap)
> 8.4G Media (hda5) (/)
> 9.7G Media (hda8) (/winf)
>
> What do you think about this? I added the hda-text, since clicking on
> a media will open media:/hda location. It looks quite logical to have
> it in the name.
>
> However, it starts to look a bit geeky, I don't know if regular users
> care to see such technical information. Also, I don't know how
> removable media (USB memory, cameras etc.) will look like..
I believe, the same dcop object that allows you to change the name, also
provides additional info: eg the partition type and/or volume label
With the partition type, you could do things like:
1) remove swap partitions
2) get a list of windows partitions sorted by device name, and then assign
Windows X, where X is the index into the list: eg, /dev/hda1 = 'Windows C',
etc.
3) For Linux, a similiar scheme as in windows (/dev/hda1 = 'Linux A1')
4) maybe volume label is provided by USB stick ? (i dont know, i dont have USB
stick to test)
Also, some other comments:
perhaps a possibility to save the current list, and check this list at startup
to see if there are new drives ?
Using IVman, you can also detect the insertion of all kinds of devices (USB,
CDROM, DVD, etc). Perhaps you should integrate this script as an IVMan
command/action ?
Just my observations :) Please do consider which is appropriate :)
Hoping to see other great developments on Kari's Media Manager ;)
Rajeev J Sebastian
More information about the kubuntu-devel
mailing list