Hi Maxwell,
On Thu, 2008-09-25 at 09:37 +0200, Fons Rademakers wrote:
> Hi Maxwell,
>
> it has been a while I was running KDE, but you can make a new desktop
> icon, or menu item, by using the Menu Editor from the KDe startup menu. You
> can specify in the menu item which command, in which directory, etc should
> be executed. Then you can drag this command from the menu onto the desktop.
KDE/GNOME/Xcfe all adhere to the Desktop standard. That means, that you can make a .desktop file and have that work on all desktops.
If you make a script like
#!/bin/sh
dir=$1 ; shift
if test "x$dir" = "x" ; then exit 1 ; fi if test ! -d $dir ; then exit 2 ; fi
(cd $dir && /opt/root/bin/root $@)
and put that in say ~/bin/dir_root.sh and make a desktop file like
[Desktop Entry] Name=ROOT on /media/my_externaldrive_name GenericName=ROOT on /media/my_externaldrive_name Comment=ROOT's Object Oriented Technologies Exec=~/bin/dir_root.sh /media/my_externaldrive_name %F Icon=root-system-bin.png Categories=Development;Science;Physics;NumericalAnalysis; MimeType=application/x-root Terminal=true Type=Application StartupNotify=false
You can put that in say ~/Desktop/RootOnMedia.desktop
That's it.
Yours,
-- ___ | Christian Holm Christensen |_| | ------------------------------------------------------------- | | Address: Sankt Hansgade 23, 1. th. Phone: (+45) 35 35 96 91 _| DK-2200 Copenhagen N Cell: (+45) 24 61 85 91 _| Denmark Office: (+45) 353 25 447 ____| Email: cholm_at_nbi.dk Web: www.nbi.dk/~cholm | |Received on Mon Oct 13 2008 - 19:48:09 CEST
This archive was generated by hypermail 2.2.0 : Tue Oct 14 2008 - 11:50:02 CEST