KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   


- Content .- Fans  . 



KDE Improvement

Score 63%

Link:  http://
Downloads:  276
Submitted:  Jun 8 2004


DeskDevRename.sh: Renames KDE desktop files according to a medium's Volume id
and changes their icons in case one is found on the medium

It does so by scanning /etc/mtab for a defined list of devices (links to which reside on the desktop) and, upon mount, gets the volume id from the device and simply renames the desktop files to it. On termination of the script or umounting the device, all changes made are reversed.

Simply copy it to some place that's in your $PATH and run it. It scans your
Desktop directory for Device files and creates ~/.kde/share/apps/DeskDevRename/devs.rc , in which you should delete all devices you don't wish to monitor (i.E., hard drives)

I recommend starting the script from your ~/.kde/Autostart directory
or via ~/.xinitrc
Moreover, it is very beneficial to get 'CD Detect&Execute'
(http://ericlathrop.com/cdde/), until it is possible to use it together
with supermount and such.

Further instructions and known issues can be found in the Bash script.


* This version has the ability to scan Autorun.inf, in order to substitute the icon of the Desktop device with an .ico file on the mounted CD
* $confDir/devs.rc may now be edited during run-time in order to add or remove devices to monitor on the fly, but it does not yet work very well.

Send to a friend
Other  Apps  from sgtpepper
Report inappropriate content


 Should be integrated

 by SmackedFly on: Jun 8 2004
Score 50%

Works fine, nice work.

Should really be integrated into KDE, any plans?

Reply to this


 Re: Should be integr

 by sgtpepper on: Jun 8 2004
Score 50%

...erm... well, no. :-D

Though I'm glad that you like it and that it works for you, it is still nothing more than a simple Shell script and should thus be considered a quick'n'dirty workaround, until the developers integrate this feature in a more "sophisticated" way.

However, I'll try to improve it further ( i.e., to support icons embedded in .exe and .dll using the 'icoutils' ), but mainly in order to learn Bash scripting, and hopefully Perl, while at the same time creating something useful.

Thanks for your comment!! :-)

Reply to this


 KDE Demon

 by janschaefer on: Jun 8 2004
Score 50%

Did you thought of implementing this as a KDE-Demon like KNemo? I think this would be the best.

Reply to this


 Sed Error!

 by janschaefer on: Jun 8 2004
Score 50%

When mounting a CD-ROM, the script gives an error saying:

sed: unkown option -- i

I use SuSE 8.2 with
GNU sed version 3.02.80

Reply to this


 Re: Sed Error!

 by sgtpepper on: Jun 8 2004
Score 50%

Well, the -i switch is used to edit files with sed "in-place", that is: without having to make the changes to a temporary file and then overwriting the original with it... pretty convenient, I thought.

Since I am using GNU sed version 4.0.9 from Debian SID, I guess this feature is simply not yet supported in earlier versions. :-/

However, the more I look at it, the more it bugs me how bad the script is designed. At the current state it relies on 8 external utilities, in many cases for doing very small things that Bash is probably able to do on its own.

I just started with Bash scripting, or more or less programming in general, so there is still much to learn.

Also, I think it is a very poor idea to actually rename the Desktop files, because it leads to many problems (i.e., Icon positioning). I just found out that the script could simply manipulate or append an entry "Name=Volume Name" to the Desktop file for the same effect...

So I am looking forward to do a major re-write asap (at the weekend).


Reply to this


 Re: Re: Sed Error!

 by janschaefer on: Jun 10 2004
Score 50%

You can use Perl instead of sed,
because perl can emulate sed behaviour:

perl -pi -e 's/Hello/World/g' *.desktop

replaces all occurrences of Hello with World in place.

Reply to this

Add commentBack

How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.

 Who we are
More about us
Frequently Asked Questions
Updates on identi.ca
Updates on Twitter
Content RSS   
Events RSS   

Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Sponsor us
Report Abuse

Copyright 2003-2016 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.