Results 1 to 10 of 10

Thread: How to: launch a .cmg from KDE menu? [solution]

  1. #1
    Member registered user
    Join Date
    Jan 2005
    Location
    Hawaii
    Posts
    72

    How to: launch a .cmg from KDE menu? [solution]

    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

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Germany
    Posts
    1,159
    You must add a menu entry with the following as the command:

    ~/.zAppRun /path/to/my.cmg

    Greetings,
    probono

  3. #3
    Member registered user
    Join Date
    Jan 2005
    Location
    Hawaii
    Posts
    72
    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":
    Code:
    ~/.zAppRun /home/bigkahuna/Klik/kbackgammon.cmg
    and also tried:
    Code:
    ~/.zAppRun '/home/bigkahuna/Klik/kbackgammon.cmg'
    but neither worked. The only option I have checked is "enable launch feedback".

    Any other ideas?

    Thanks

    Paul

  4. #4
    Senior Member registered user
    Join Date
    Aug 2003
    Location
    Dublin, Ireland
    Posts
    164
    Quote Originally Posted by bigkahuna
    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":
    Code:
    ~/.zAppRun /home/bigkahuna/Klik/kbackgammon.cmg
    and also tried:
    Code:
    ~/.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?

  5. #5
    Member registered user
    Join Date
    Jan 2005
    Location
    Hawaii
    Posts
    72
    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

    Paul

  6. #6
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Germany
    Posts
    1,159
    The following asks you where you store your cmg files, and then creates a menu entry for each:

    Code:
    #!/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

  7. #7
    Senior Member registered user
    Join Date
    Aug 2003
    Location
    Dublin, Ireland
    Posts
    164
    Quote Originally Posted by bigkahuna
    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

    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.

  8. #8
    Member registered user
    Join Date
    Jan 2005
    Location
    Hawaii
    Posts
    72
    ... then creates a menu entry for each:
    Jeez... dont make it too easy for me!

    /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

  9. #9
    Junior Member
    Join Date
    Jun 2005
    Posts
    1

    Please help

    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.

  10. #10
    Senior Member registered user
    Join Date
    Aug 2003
    Location
    Dublin, Ireland
    Posts
    164

    Re: Please help

    Quote Originally Posted by Gnom
    Path to my cmg is home/mhau/klik/.
    What do i have to write in the Menü-Editor?
    Code:
    /home/mhau/.zAppRun /home/mhau/klik/some.cmg
    Or you could look at probono script above?

Similar Threads

  1. Replies: 13
    Last Post: 05-26-2006, 03:35 PM
  2. Kde menu customize - menu item language???
    By maxmartin in forum Customising & Remastering
    Replies: 0
    Last Post: 02-19-2006, 06:19 PM
  3. Mozilla does not launch in 3.4
    By samknoppix in forum General Support
    Replies: 3
    Last Post: 05-16-2004, 09:00 AM
  4. launch "start" menu from the keyboard?
    By electronicjason in forum General Support
    Replies: 3
    Last Post: 09-26-2003, 08:45 PM
  5. MPlayer won't launch with an GUI
    By TheCyberDude in forum General Support
    Replies: 4
    Last Post: 07-29-2003, 06:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox picture

Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox

$340.00



Dell PowerEdge R630 8SFF 2.6Ghz 20-Core 128GB Mem 2x10G+2x1G NIC 2x750W PSU picture

Dell PowerEdge R630 8SFF 2.6Ghz 20-Core 128GB Mem 2x10G+2x1G NIC 2x750W PSU

$399.04



HP ProLiant DL360 G9 Server 2x E5-2660v3 2.60Ghz 20-Core 96GB P440ar picture

HP ProLiant DL360 G9 Server 2x E5-2660v3 2.60Ghz 20-Core 96GB P440ar

$304.35



Dell Poweredge R640 Server | 2x Silver 4114 20 Cores | 96GB | 8x 1.8TB Dell SAS picture

Dell Poweredge R640 Server | 2x Silver 4114 20 Cores | 96GB | 8x 1.8TB Dell SAS

$2749.99



Intel Xeon E5-2680 v4 2.4GHz 35MB 14-Core 120W LGA2011-3 SR2N7 picture

Intel Xeon E5-2680 v4 2.4GHz 35MB 14-Core 120W LGA2011-3 SR2N7

$17.99



Intel Xeon E5-2699v4 SR2JS 2.2GHz 22-Core 55MB 145W Server Processor CPU picture

Intel Xeon E5-2699v4 SR2JS 2.2GHz 22-Core 55MB 145W Server Processor CPU

$144.95



Intel Xeon Gold 6126 2.6 GHz LGA 3647 Server CPU Processor SR3B3 picture

Intel Xeon Gold 6126 2.6 GHz LGA 3647 Server CPU Processor SR3B3

$17.99



Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU picture

Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU

$44.99



INTEL XEON GOLD 6240 2.6GHZ PROCESSOR | SRF8X picture

INTEL XEON GOLD 6240 2.6GHZ PROCESSOR | SRF8X

$399.99



Dell Precision T5600/t5610 Xeon E5-2670 2.6Ghz 16GB DDR3 RAM NO HDD Nvidia picture

Dell Precision T5600/t5610 Xeon E5-2670 2.6Ghz 16GB DDR3 RAM NO HDD Nvidia

$90.00