Highlight mountpoints with an (un)mount icon - NEED TO CHANGE TO THE FILE:/ KIOSLAVE

Gerold Jens Wucherpfennig gjwucherpfennig at gmx.net
Mon Sep 15 14:28:32 BST 2008

Hi, I'd like to make a small change to the FILE:/ kioslave.
Folders which are mountpoints should get a new mimetype
either inode/x-unmounted-mountpoint or inode/x-mounted-mountpoint,
based on whether filesystems are mounted there at the moment.
Both mime-types will be sub-types of inode/directory.

1.The files /etc/fstab and /etc/mtab should be monitored for changes
2a. If /etc/fstab changes, rebuild the array fstab_mountpoints to
 which the mountpoints are written.
2b. If /etc/mtab changes, rebuild the array mtab_mountpoints to
 which the mounted mountpoints are written.
3. For every folder in a folder-view, check if its path is in
 If it is, then the mime-type is inode/x-mounted-mountpoint.
 If it is not, then check if its path is in fstab_mountpoints.
 If it is, the mime-type is inode/x-unmounted-mountpoint.
 Else the mime-type remains inode/directory.

The new mime-types can be associated new icons and
a menue to mount the filesystem at that mountpoint etc.

Unfortuatelly I need some help to do the changes in the source code...


More information about the kde-core-devel mailing list