Description: This is my patch to add an option to kdesktop for having devices first on KDE's dekstop.
KDesktop handle two different kind of devices, the first are the devices that kdesktop adds itself, and the second type is user added devices, which is x-desktop-files with the type FSDev[ice].
This patch is based on a patch made by Carsten Rietzschel for bug http://bugs.kde.org/show_bug.cgi?id=86081 but his patch didn't handle FSDev, so I changed it. My thanks to Carsten for his patch without it I wouldn't have been able to make mine.
Install: Well you have to patch kdebase and recompile it. cd kdebase && patch -p1 < PATH_TO_PATCH
I've testet it on KDE 3.3.2 and a resent CVS so it should work for 3.4 when it's released.
Since I havn't got my homepage up-and-running yet both patches are in the download-file.Last changelog:
1.1 - minor fix for KDE3.4. Forgot to add menuitem for Devices first.
I am recompiling Kdebase as I type. I have long waited for something like this. I always felt that the Icon align behaviour of KDE needed some serious polishing.
The other thing that really sucks is the automatic mounting of devices and the display of an icon on the desktop. Don't get me wrong, I think it is great to represent a newly added device on the desktop with an icon but why have the already present icons to explode on the desktop and be spread all over the place. Why not check the vertical or horizontal alignment option set and then add the latest icon to the end of the bunch and not randomly into their middle!? Well don't look a gift horse int the mouth... For all I know there might be somebody coding on it right now. once that person will get his or her patch in the HEAD tree, KDE will make me even more happy every day.
J.
There are two kinds of devices you can have on the desktop in KDE. The first is the type that you ask KDE to place it self by desktopmenu->configure desktop->behavior->Device icons->mark "Show devices icons"
The second type is the type you yourself adds to the desktop by (in KDE 3.4) desktopmenu->Create New->Link to device->*. This type is really just a .desktop-file with the type=FSDev.
Currently (without this patch) KDE treats type one as a folder and sort it together with folders, and treats type two like the file it is.
If hard disk partitions were first earlier it was because the name had a leading space (eg. " HARD DISK (hda1)" insteed of "HARD DISK (hda1)" ), but it seems that resent CVS have fixed that.
What this patch do is: KDE now treats both type one and two as a seperate (3rd) group of icons, and sorts them before folders and files, but only if it is told to do so.
I hope that explained it.
Ratings & Comments
6 Comments
I am recompiling Kdebase as I type. I have long waited for something like this. I always felt that the Icon align behaviour of KDE needed some serious polishing. The other thing that really sucks is the automatic mounting of devices and the display of an icon on the desktop. Don't get me wrong, I think it is great to represent a newly added device on the desktop with an icon but why have the already present icons to explode on the desktop and be spread all over the place. Why not check the vertical or horizontal alignment option set and then add the latest icon to the end of the bunch and not randomly into their middle!? Well don't look a gift horse int the mouth... For all I know there might be somebody coding on it right now. once that person will get his or her patch in the HEAD tree, KDE will make me even more happy every day. J.
Sorry but I don't get what is this exactly for...what's the difference between the current KDesktop behaviour?
There are two kinds of devices you can have on the desktop in KDE. The first is the type that you ask KDE to place it self by desktopmenu->configure desktop->behavior->Device icons->mark "Show devices icons" The second type is the type you yourself adds to the desktop by (in KDE 3.4) desktopmenu->Create New->Link to device->*. This type is really just a .desktop-file with the type=FSDev. Currently (without this patch) KDE treats type one as a folder and sort it together with folders, and treats type two like the file it is. If hard disk partitions were first earlier it was because the name had a leading space (eg. " HARD DISK (hda1)" insteed of "HARD DISK (hda1)" ), but it seems that resent CVS have fixed that. What this patch do is: KDE now treats both type one and two as a seperate (3rd) group of icons, and sorts them before folders and files, but only if it is told to do so. I hope that explained it.
what icon set u use?
Reinhardt http://www.kde-look.org/content/show.php?content=6153
Reinhardt http://www.kde-look.org/content/show.php?content=6153