Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 20 May 2013, 05:07
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
How to create submenu in the Puppy Menu for Wine?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [14 Posts]  
Author Message
darkcity


Joined: 23 May 2010
Posts: 2215
Location: near here

PostPosted: Sat 04 Feb 2012, 18:41    Post subject:  How to create submenu in the Puppy Menu for Wine?
Subject description: Shift wine entries into subdir
 

Hi,

I found it annoying that Wine has so many entries in the Utility Menu.

I wanted to create a submenu from the 'Utility menu'

---

The best I have managed so far is creating a menu for Wine entries in a menu off the root Menu - see Pic

---

I have created a category called X-WineDir
Changed the category to Wine entries' categories to X-WIneDir

but how do I shift the menu into/ create a subdir off the Utility menu?

Embarassed
MenuSubDir.jpg
 Description   
 Filesize   61.08 KB
 Viewed   576 Time(s)

MenuSubDir.jpg


_________________
Wiki Audacity 2.0.1
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 3843

PostPosted: Sat 04 Feb 2012, 21:39    Post subject:  

if you want to see an example, jwm tools has jwm_menu_create - all entries go to appropriate subdirectories (if configured for submenus)
http://www.murga-linux.com/puppy/viewtopic.php?t=70804

they just need a nested menu for each subcategory

_________________
Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 2199
Location: Gatineau (Qc), Canada

PostPosted: Sat 04 Feb 2012, 22:52    Post subject:  

Hello, darkcity.

I've been trying to do the exact same thing for a while and couldn't figure it out. Can you post the details of your X-WineDir ? (I know it's not a "code"per se, more like the xml structure.) Many thanks in advance.

_________________
Wink "...l'industrie de l'informatique n'aura besoin que de très peu de temps pour ramener l'humanité aux dessins rupestres." (M. Goebbel, Order of the Command Line; [ma trad.])
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 3843

PostPosted: Sat 04 Feb 2012, 23:17    Post subject:  

btw, its my fault all of those menu entries exist in the first place (before they were only accessible via terminal) - sorry about that

if you use akita linux (formerly puplite), scottman is using a modified version of my jwm_menu_create that supports submenus, but it has been so long since I made the .desktop files that I'm not sure where they would end up.

you may want to modify the desktop files to go in more appropriate places and submit them to greendome

_________________
Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
r1tz


Joined: 09 Sep 2010
Posts: 165
Location: In #puppylinux (IRC)

PostPosted: Sat 04 Feb 2012, 23:30    Post subject:  

Hmm... edit the files in /etc/xdg/menus

For hints (look at the related links for more details):
http://puppylinux.org/wikka/JWMMenuCategory


ps. sorry if im telling you what you already know XD
Back to top
View user's profile Send private message MSN Messenger 
musher0


Joined: 04 Jan 2009
Posts: 2199
Location: Gatineau (Qc), Canada

PostPosted: Sun 05 Feb 2012, 03:16    Post subject:  

Sorry, guys, this is much too complicated.

The average user will get nowhere fast with this xml structure and lose so many precious hours trying to understand xml before getting any results -- when all (s)he want is a new menu or sub-directory entry -- which should as easy as typing "hello".

Re-starting investigation on this subject from the icewm menu instead, which is closer to a plain text file.

Thanks anyway. TWYL.

_________________
Wink "...l'industrie de l'informatique n'aura besoin que de très peu de temps pour ramener l'humanité aux dessins rupestres." (M. Goebbel, Order of the Command Line; [ma trad.])
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 3843

PostPosted: Sun 05 Feb 2012, 03:31    Post subject:  

its only complicated because you are overcomplicating it

follow the link I posted for submenu support in jwm

jwm_menu_create doesn't bother to mess with the gunk in /etc/xdg - it is all in single, simple shell script and can be configured in a human readable text file, just install jwm_tools-0.9 and run:
jwm_menu_create;jwm -restart

_________________
Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 2199
Location: Gatineau (Qc), Canada

PostPosted: Sun 05 Feb 2012, 06:34    Post subject:  

technosaurus wrote:
its only complicated because you are overcomplicating it

follow the link I posted for submenu support in jwm

jwm_menu_create doesn't bother to mess with the gunk in /etc/xdg - it is all in single, simple shell script and can be configured in a human readable text file, just install jwm_tools-0.9 and run:
jwm_menu_create;jwm -restart


Let's not get personal... Maybe I don't have any talent at all for xml. I did download and try your package, but on my setup (Lucid Puppy 5.25 retro), jwm_menu_create simply doesn't start -- and the console displays no explanation as to missing dependencies, etc.

In any case, if you can't do it one way, try another, eh? Here's something that's not complicated at all. It's a menu editor based on icewm rather than jwm. It looks a lot like a csv editor, if you've ever worked with one. (dmcsv, for example.)

Packaged from the ubuntu repository at http://packages.ubuntu.com/hardy/icemc.

When you bring up icemc, it's rather self-explanatory. All you have to do at the beginning of your session is to specify ~/.icewm (where the icewm menu is) and the icons directory of your choice.

After that, the most practical thing to do is to use the right click to see the options at your disposal. Just be careful that any new "directory" is marked with a minus sign at the left if you want to insert programs in them. A "+" means they're closed, so you can't put anything in them.

Beforehand, don't forget to
1) run fixmenus, so you have a fresh icewm menu; and
2) make a back-up of your original icewm menu beforehand, although icemc allows you to save your new menu to a different name.

Requires Qt-3. But I have Qt-4.5 installed, and it worked great.

All in all, a very useful program.

Hopefully this can help our friend darkcity. Enjoy!
icemc-0.2.4-3_i386.pet
Description  A simple but efficient editor for the icewm menu. Your customized icewm menu can be used for icewm of course, but also as a template for aemenu, MyGtkMemu, deskmenu, and the like. N.B.: This app is NOT a substitute or replacement for jwm menu utilities.
pet

 Download 
Filename  icemc-0.2.4-3_i386.pet 
Filesize  70.59 KB 
Downloaded  89 Time(s) 

_________________
Wink "...l'industrie de l'informatique n'aura besoin que de très peu de temps pour ramener l'humanité aux dessins rupestres." (M. Goebbel, Order of the Command Line; [ma trad.])

Last edited by musher0 on Sun 05 Feb 2012, 16:05; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
darkcity


Joined: 23 May 2010
Posts: 2215
Location: near here

PostPosted: Sun 05 Feb 2012, 08:45    Post subject:  

thanks for all the comments

Using Puppy 5.29, no Qt so I get 'Permission Denied' in terminal

--

Regard url tags, ensure there are no space before or after url, otherwise your whole post will disappear!

for example
Code:

[url]http://www.cheese.com [/url]
won't work

--

will experiment more laterz ; -)

_________________
Wiki Audacity 2.0.1
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 3843

PostPosted: Sun 05 Feb 2012, 14:28    Post subject:  

musher0 wrote:
Maybe I don't have any talent at all for xml. I did download and try your package, but on my setup (Lucid Puppy 5.25 retro), jwm_menu_create simply doesn't start -- and the console displays no explanation as to missing dependencies, etc. !
it has no dependencies other than jwm and a shell - it is a silent script and runs really fast (about 10x faster than fixmenus) you probably didn't run jwm -restart ... or you ran fixmenus afterwards (yeah - don't do that, it makes fixmenus obsolete for jwm)
_________________
Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 2199
Location: Gatineau (Qc), Canada

PostPosted: Sun 05 Feb 2012, 16:01    Post subject:  

@darkcity : thanks for the info.
@technosaurus. will give your jwm menu utilities another (really thorough, as in rubbing my hands together while saying "yan-han-han") Twisted Evil try.

_________________
Wink "...l'industrie de l'informatique n'aura besoin que de très peu de temps pour ramener l'humanité aux dessins rupestres." (M. Goebbel, Order of the Command Line; [ma trad.])
Back to top
View user's profile Send private message Visit poster's website 
`f00


Joined: 06 Nov 2008
Posts: 791
Location: the Western Reserve

PostPosted: Sun 05 Feb 2012, 16:27    Post subject:
Subject description: fwiw..
 

(actually more in the edit line than real programming)

___utilwine___(attached utilwine.tar.gz)
..these are examples for a UtilityWine subcat of Utilities..

/etc/xdg/menus/puppy-utility.menu
..is the edit I use, rename your oem before trying this one..
you may need to add separators back in if desired,
'bad habit' of mine to take'em out
Razz

/usr/share/applications/*
..these are my 'usual' dotdesktops in UtilityWine,
yours may vary but Category=UtilityWine is standard..

/usr/share/desktop-directories/Puppy-UtilityWine.directory
..is the new subcat dotdirectory file..

/usr/share/pixmaps/*
..a couple generic images if needed..

After doing the copy/edit and/or moves,
refresh your menu(s) according to wm policy(s).
Usually a simple "fixmenus" in console and
reload (jwm and maybe icewm), other stuff is
dependent on options at the end of fixmenus.

___further - not guaranteed to work 'automagically' in all wms, panels, menu plug-ins, etc. Mostly I do these others manually (tedious but do-able) if desired - usually because some scripts do things (like take 'way too long with fvwm or make a ton of syms or..) and I lack the skill to fix them. Oh well, plodding gets me there eventually.

Yes, advantages to using jwm_tools-0.9 (or icemc if you swing that Cool way) .. only disadvantage I can see off the bat with 'tools is the all/not for subcats rather than the xdg limits value gunk to give a choice as to just what subcats branch Neutral (drove me nuts in one of the macpups, almost every dang subcat was up no matter how diminutive its content..)

hth

___addenda (see below) - Yep, just basic xdg. By the way, xfe has some icons for its add-ons (sym them to a more usual place, maybe) in its own collection.
utilwine.tar.gz
Description  examples
gz

 Download 
Filename  utilwine.tar.gz 
Filesize  8.22 KB 
Downloaded  84 Time(s) 

Last edited by `f00 on Thu 09 Feb 2012, 11:35; edited 1 time in total
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 2199
Location: Gatineau (Qc), Canada

PostPosted: Sun 05 Feb 2012, 23:00    Post subject:  

Many thanks, 'roo.

Your "non-code" worked wonders! Very Happy (Please see attached.)

TWYL.
UtilityWineCategory.jpg
 Description   Successful example of "Categories=UtilityWine" in the *.desktop files for wine utilities and programs.
 Filesize   45.3 KB
 Viewed   464 Time(s)

UtilityWineCategory.jpg


_________________
Wink "...l'industrie de l'informatique n'aura besoin que de très peu de temps pour ramener l'humanité aux dessins rupestres." (M. Goebbel, Order of the Command Line; [ma trad.])

Last edited by musher0 on Sat 10 Mar 2012, 13:06; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
darkcity


Joined: 23 May 2010
Posts: 2215
Location: near here

PostPosted: Sun 12 Feb 2012, 14:19    Post subject:  

Thanks for everyone's help. I'm now a menu expert ; -) on JWM anyhow-

the crucial part was working out submenus are controlled by inline limit

http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=51849

_________________
Wiki Audacity 2.0.1
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [14 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0730s ][ Queries: 13 (0.0054s) ][ GZIP on ]