How to add Programs to the DSL menu?


Forum: Apps
Topic: How to add Programs to the DSL menu?
started by: windancer

Posted by windancer on Aug. 15 2008,09:41
ive been searching high and low. how do I add a program to the DSL menu? ive downloaded gaim and gimp and would love to add them to the menu for quick starts. I dont want to put th e icons out on the desktop its nice and clean. any help would be much appreciated or a lead to the howto. thanks much
Posted by Juanito on Aug. 15 2008,10:00
Don't the gaim/gimp extensions have a menu entry already - or did you compile them yourself?

You don't mention if you're using dsl-3.x or dsl-4.x - in dsl-3.x the menu entry is in /home/dsl/.xtdesktop and in dsl-4.x it is in /tmp/."something with menu in the name" (I'm not at a dsl machine at the moment). You can copy and modify an existing entry to make your own.

Posted by windancer on Aug. 15 2008,10:07
Quote (Juanito @ Aug. 15 2008,10:00)
Don't the gaim/gimp extensions have a menu entry already - or did you compile them yourself?

You don't mention if you're using dsl-3.x or dsl-4.x - in dsl-3.x the menu entry is in /home/dsl/.xtdesktop and in dsl-4.x it is in /tmp/."something with menu in the name" (I'm not at a dsl machine at the moment). You can copy and modify an existing entry to make your own.

im using dsl-4.x I downloaded those programs using my dsl. how do I make my own entry? for instance does it have something to do with the gaim.lnk file it reads like this:
table Icon
 Type: Program
 Caption: Gaim-1.3.1
 Command: /usr/bin/start_gaim
 Icon: .xtdesktop/gaim-gtk2-1.3.1.png
 X: 495
 Y: 185
end
I just dont know what to do with that or where to put it

Posted by Juanito on Aug. 15 2008,10:53
The file you mention is for dsl-3.x, as said, the equivalent file for dsl-4.x is in /tmp/.*menu* (sorry I cannot remember the exact folder name) - this folder will already contain menu items for the base dsl that you can copy.

If you download gimp-1.2.uci from mydsl testing, it already has a menu item for dsl-4.x

Posted by windancer on Aug. 15 2008,11:00
Quote (Juanito @ Aug. 15 2008,10:53)
The file you mention is for dsl-3.x, as said, the equivalent file for dsl-4.x is in /tmp/.*menu* (sorry I cannot remember the exact folder name) - this folder will already contain menu items for the base dsl that you can copy.

If you download gimp-1.2.uci from mydsl testing, it already has a menu item for dsl-4.x

once I copy it what do I do with it? also I have checked everything in /tmp there is no info in there. there is a folder called mydsl.menu but its empty

Posted by windancer on Aug. 15 2008,11:13
well I can always just run those from terminal. its getting late ive been at this for a few hours and cant find any info on it. I may just switch back to 3.3 mydsl just put the icon on desktop for me. when I downloaded them initially they were in the menu under my dsl but they dissapeared after I restarted
Posted by Juanito on Aug. 15 2008,11:16
Ah - OK, /tmp/mydsl.menu is the folder I couldn't remember - I thought there would already be a file in there, but apparently not.

I cannot remember the format of the menu item file you need - since you were looking to make a menu item for gimp, you could download gimp-1.2.uci from mydsl testing, load it, and then you will have a menu item to copy and modify for gaim (it's self-evident what to modify once you have an example).

Posted by windancer on Aug. 15 2008,11:54
Quote (Juanito @ Aug. 15 2008,11:16)
Ah - OK, /tmp/mydsl.menu is the folder I couldn't remember - I thought there would already be a file in there, but apparently not.

I cannot remember the format of the menu item file you need - since you were looking to make a menu item for gimp, you could download gimp-1.2.uci from mydsl testing, load it, and then you will have a menu item to copy and modify for gaim (it's self-evident what to modify once you have an example).

ok I downloaded opera from the test area. the file wa in the mydls.menu vewing the file it has this:
[exec] (Opera9.25) {/opt/opera925/bin/opera}

I still have no clue how to add that to the menu

Posted by mikshaw on Aug. 15 2008,12:06
I'm guessing you might have a traditional harddrive install?  I can't see any reason why a typical mydsl extension doesn't automatically create a menu item (it would be in the mydsl submenu) unless there's something messed up in your system.  You shouldn't need to do anything manual with the menu files in /tmp

What desktop are you using? jwm? fluxbox?  Every desktop has its own way of using (or not using) menus.

Posted by windancer on Aug. 15 2008,12:12
Quote (mikshaw @ Aug. 15 2008,12:06)
I'm guessing you might have a traditional harddrive install?  I can't see any reason why a typical mydsl extension doesn't automatically create a menu item (it would be in the mydsl submenu) unless there's something messed up in your system.  You shouldn't need to do anything manual with the menu files in /tmp

What desktop are you using? jwm? fluxbox?  Every desktop has its own way of using (or not using) menus.

im using JWM and I did a full hard drive install. the items do go to the mydsl sub menu but after a restart they dissapear
Posted by Juanito on Aug. 15 2008,12:25
I've never used a traditional hd install, but in a frugal hd install, you would need to save the mydsl extension (opera in your example) in the folder /mydsl or /mydsl/optional for it to appear after re-boot.
Posted by mikshaw on Aug. 15 2008,14:42
UCI extensions always need to be reloaded when you reboot, even if you have a traditional harddrive-installed filesystem, because they are mounted rather than installed.  You can either add a mydsl-load command to /opt/bootlocal.sh or you can make the mounted extension a permanent writeable directory:
1) mount the extension (example: /opt/opera925 would be created)
2) copy the /opt/opera925 directory to a temp location
3) umount the extension
4) move the temp directory to /opt/opera925
5) add this to a convenient spot in .jwmrc:
   <Program label="Opera"> /opt/opera925/bin/opera </Program>

The syntax used in the mydsl menu files is for Fluxbox, a carryover from when Fluxbox was the default window manager.

Posted by windancer on Aug. 16 2008,07:45
I went back to DSL 3.3 it's much friendlier to me LOL I get nice shiny icons on my desktop and the stuff stays in the my dsl menu. Thanks for trying to help me but I was really getting a headache trying to figure this out last night
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.