View Full Version : How to: launch a .cmg from KDE menu? [solution]
bigkahuna
05-04-2005, 07:33 PM
Is this possible? I tried adding the .cmg to the menu... didn't work. Then tried adding a link to a folder, then added the link to the menu... still didn't work? Yet if I click on the .cmg or the link file directly, both launch the app's fine.
Paul
probono
05-05-2005, 01:24 PM
You must add a menu entry with the following as the command:
~/.zAppRun /path/to/my.cmg
Greetings,
probono
bigkahuna
05-05-2005, 04:01 PM
Thanks Probono,
But still doesn't work. I'm using Kanotix 2005-1 and here's an example of what I've tried for "Kbackgammon":
~/.zAppRun /home/bigkahuna/Klik/kbackgammon.cmg
and also tried:
~/.zAppRun '/home/bigkahuna/Klik/kbackgammon.cmg'
but neither worked. The only option I have checked is "enable launch feedback".
Any other ideas?
Thanks
Paul
bfree
05-05-2005, 05:04 PM
Thanks Probono,
But still doesn't work. I'm using Kanotix 2005-1 and here's an example of what I've tried for "Kbackgammon":
~/.zAppRun /home/bigkahuna/Klik/kbackgammon.cmg
and also tried:
~/.zAppRun '/home/bigkahuna/Klik/kbackgammon.cmg'
but neither worked. The only option I have checked is "enable launch feedback".
Any other ideas?
Please try running the command "~/.zAppRun /home/bigkahuna/Klik/kbackgammon.cmg" in a konsole so that you can see what, if any, errors it gives?
bigkahuna
05-05-2005, 05:19 PM
It runs OK from Konsole, but the exact same line in the Menu Editor doesn't work. Looks like the HD shuffles for a "micro-second" then nothing, nada, zip, zilcho.... you get the idea :cry:
Paul
probono
05-07-2005, 08:50 PM
The following asks you where you store your cmg files, and then creates a menu entry for each:
#!/bin/sh
# ask where user stores cmg files (desktop by default)
CMGDIR=$(kdialog --getexistingdirectory ~/Desktop --caption "Where do you store your cmg files?")
# find cmg files
CMGFILES=$(find $CMGDIR/*.cmg 2>/dev/null)
# remove old menu entries
rm -rf $HOME/.kde/share/applnk/klik/*.cmg.desktop
# create new menu entries
for CMGFILE in $CMGFILES
do
echo $CMGFILE
BASENAME=$(basename "$CMGFILE")
cat > $HOME/.kde/share/applnk/klik/$BASENAME.desktop <<EOmooF
[Desktop Entry]
Encoding=UTF-8
Type=Application
Exec=$HOME/.zAppRun $CMGFILE
Icon=view_remove
Name=$BASENAME
EOmooF
done
bfree
05-07-2005, 09:15 PM
It runs OK from Konsole, but the exact same line in the Menu Editor doesn't work. Looks like the HD shuffles for a "micro-second" then nothing, nada, zip, zilcho.... you get the idea :cry:
Paul
Ooops, meant to mention it in here before now! Sorted out in IRC. The menu entry was using "~/.zAppRun" but had to use "/home/bigkahuna/.zAppRun" to work.
bigkahuna
05-08-2005, 01:15 AM
... then creates a menu entry for each:
Jeez... dont make it too easy for me! :wink: :wink:
/home/bigkahuna/.zAppRun
Bfree - thanks for a re-post. I believe you already gave me the info on the #kanotix irc, but since Ive since wiped my old install and am in the midst of a fresh new install, your post will help alot!
Thanks both of you!!!
Paul
hi there,
could you please explain again? Path to my cmg is home/mhau/klik/.
What do i have to write in the Menü-Editor?
thx,
g.
bfree
06-19-2005, 09:18 PM
Path to my cmg is home/mhau/klik/.
What do i have to write in the Menü-Editor?
/home/mhau/.zAppRun /home/mhau/klik/some.cmg
Or you could look at probono script above?
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.