Author |
Message |
trio

Joined: 21 Dec 2008 Posts: 2083 Location: अनुमोदना
|
Posted: Fri 18 Feb 2011, 11:13 Post subject:
Menu Entry Maker 1.1 Subject description: Ever wonder how to create a menu entry for your executables? |
|
Ever wonder how to create a menu entry for your executables?
This simple tool (a simple "coming back" project that doesn't consume too much time) may help you ....
install the pet, run fixmenus (for older puppies) and restart window manager
Menu entry is under utility or you can run the command "menumaker"
Test as you like .....
Oh yes, it's made in LUPU 520
Cheers
v1.1 - Delete a menu entry function
Description |
|

Download |
Filename |
menumaker-1.1.pet |
Filesize |
2.02 KB |
Downloaded |
2160 Time(s) |
Description |
|
Filesize |
22.2 KB |
Viewed |
5346 Time(s) |

|
_________________ My apps
Last edited by trio on Fri 18 Feb 2011, 21:27; edited 3 times in total
|
Back to top
|
|
 |
DaveS

Joined: 09 Oct 2008 Posts: 3726 Location: UK
|
Posted: Fri 18 Feb 2011, 13:01 Post subject:
|
|
Thanks Trio... loads easier than creating a .desktop file by hand
_________________ Spup Frugal HD and USB
Root forever!
|
Back to top
|
|
 |
Bert

Joined: 30 Jun 2006 Posts: 1106
|
Posted: Fri 18 Feb 2011, 16:44 Post subject:
|
|
+1!
Very nice tool.
What's more, it works!
One little thing, while installing the pet it says it will be installed in Setup.
But it installs in Utilities...
Which is of course equally logical..
While using your Pet for the first time, I managed to make a mistake: I forgot to change the bottom entry to the appropriate category, so now I have a menu entry in multimedia, which should be in Internet.
What do you think about a Menumaker's counterpart, called e.g. MenuCleaner..? Or Menumaker having an added functionality: removing menu-entries that are no longer needed? (Ah these Puppy users, you give them one great thing and they start asking for another.. )
A more technical quesion: If you want to add a mini-icon to the menu-entry, does it have to be located in /usr/local/lib/X11/mini-icons? I tried to link to an icon somewhere else on the drive (carefully entering the correct path) and it wasn't shown in the menu. I realize this is not a Menumaker question, but maybe someone reading this has the answer ready ?
Thanks again Trio!
_________________

|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 2083 Location: अनुमोदना
|
Posted: Fri 18 Feb 2011, 19:52 Post subject:
|
|
DaveS
Welcome!
Bert
Great it works!
Now to answer your questions:
about the icons, I KNOW that you can use other icons, but they should adhere the puppy's rule, maybe this is the answer:
Barry K:
Quote: | An example: the package gfnrename-0.4 installs
a 16x16 icon at /usr/local/gfnrename-0.4/icon.xpm
(of course, if you need to specify the path here, it is
the path AFTER the package is installed)
IT MUST BE A 16x16 PIXEL ICON, NO BIGGER! |
About the menu entry removal,...... I was thinking exactly the same feature ... and now you asked aaaah ... I was thinking to "post and run" (kinda hit and run in a good way) .... 'cuz I only have limited time .... but ... let's see....
_________________ My apps
|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 2083 Location: अनुमोदना
|
Posted: Fri 18 Feb 2011, 21:24 Post subject:
|
|
Version 1.1 - add function to delete a menu entry
Download at mainpost
_________________ My apps
|
Back to top
|
|
 |
`f00

Joined: 06 Nov 2008 Posts: 808 Location: the Western Reserve
|
Posted: Fri 18 Feb 2011, 22:55 Post subject:
Subject description: ahhh - just passin' through and .. |
|
Hmm, really truly deleting? (beware the whiteout, but you knew that - surprising how often n00Bs take awhile to get that concept when entries come back all walking undead )
Build in a function to keep a particular wm from 'shotgunning' categories and other messing about and you're my hero.
I suppose it might be done to create symlinks to 'uncommon' icon locations (but there always seems to be yet another when you think you cover them all) and it gets unwieldy or may even create an overabundance of syms (like pfbpanel did at one time and yes it did miss my favorite dumping ground /usr/share/pixmaps which is pretty simple to remember for me)
Categories can be weird as well but mostly xdg is standard fare for most menu systems that do a good job at giving puppy users a menu that's familiar and useful. Or goes by mru-favorites or however.
Will give it a run (but I just got almost all my manual updating done).
addenda
#commenting out the category line is an acceptable method for 'nulling' an entry respected by most systems (but not fully effective for those few with an "other" or catchall/miscellaneous category, :sigh: ), this avoids the whiteout conundrum (and keeps the file on hold just in case there's a change of heart, simpler to uncomment). If the whole app is definitely not wanted, like those big ones that don't work out or for whatever reason hopefully the dotpet will uninstall clean or you did make a backup, right?
cheers, anyway
Last edited by `f00 on Sat 19 Feb 2011, 04:54; edited 1 time in total
|
Back to top
|
|
 |
GustavoYz

Joined: 07 Jul 2010 Posts: 894 Location: .ar
|
Posted: Sat 19 Feb 2011, 01:14 Post subject:
|
|
Great Idea, going to see how it works for me...
It could be useful for 'pet packaging' too.
Thanks.
_________________

|
Back to top
|
|
 |
sheldonisaac
Joined: 21 Jun 2009 Posts: 717 Location: Philadelphia, PA
|
Posted: Sat 19 Feb 2011, 11:40 Post subject:
Re: Menu Entry Maker 1.1 Subject description: Ever wonder how to create a menu entry for your executables? |
|
(PORTIONS SNIPPED)
trio wrote: | Ever wonder how to create a menu entry for your executables?
This simple tool (a simple "coming back" project that doesn't consume too much time) may help you ....
install the pet, run fixmenus (for older puppies) and restart window manager
|
Many thanks, trio.
I am using Puppy 2.14X-TOP6.
Just downloaded and installed your Menu Entry Maker 1.1.
Tried to make an Internet menu entry for Sylpheed 2.2.7
Worked very well.
Thanks again,
Sheldon
_________________ Dell E6410: Xenial, etc
Dell Mini 9, Acer Aspire One, EeePC 1018P, PowerBook G4
Intel D865GBF, Intel DQ35JOE
|
Back to top
|
|
 |
amigo
Joined: 02 Apr 2007 Posts: 2641
|
Posted: Sat 19 Feb 2011, 11:57 Post subject:
|
|
Boy, glad I downloaded the original version, since the thing already seems to be drifting in its purpose -next thing we'll see that the tool becomes a general backup-snapshot-remote_installer-desktop_animation_setter-disk_defragger thingy....
LOL, I'm just remembering what happened when someone decided puppy needed a trash can and it wound up being a backup/snapshot/restoration thingy by the time it was finished -but of course you couldn't use it to actually delete any files....
|
Back to top
|
|
 |
Bert

Joined: 30 Jun 2006 Posts: 1106
|
Posted: Sat 19 Feb 2011, 12:16 Post subject:
|
|
amigo wrote: | -next thing we'll see that the tool becomes a general backup-snapshot-remote_installer-desktop_animation_setter-disk_defragger thingy....
LOL... |
Seriously, I think the two functions -adding and removing a menu entry- are a logical combination.
Thanks again trio!
_________________

|
Back to top
|
|
 |
Sylvander
Joined: 15 Dec 2008 Posts: 4327 Location: West Lothian, Scotland, UK
|
Posted: Sun 20 Feb 2011, 07:50 Post subject:
|
|
PROBLEM!
See this.
1. Installed the menumaker program, and used it to put a menu item in place for dldflash.
2. It made the menu item OK, but the menu item failed to run dldflash.
In fact dldflash then no longer worked.
3. Used menumaker to delete the menu item.
That worked OK.
4. Used menumaker to re-make the menu item with the same result as before.
5. Rebooted the Puppy [lupu-520-ataflash] and chose to not save the session at shut-down.
Once back into the Puppy...
The menu items were gone...
But the menumaker command was still functional.
And the dldflash command was now functional.
6. See this regarding lupu-520-ataflash...
The Lupu is booted using a live CD-RW disk, that uses a lupusave on an internal HDD...
But the isolinux.cfg file in the ISO used to make the CD has been edited to make the Puppy treat the lupusave file on the HDD as though it were a lupusave on a Flash Drive...
Then this change and this change have both been made so that I can choose to not save any changes to the session.
|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 2083 Location: अनुमोदना
|
Posted: Sun 20 Feb 2011, 08:06 Post subject:
|
|
Sylvander,
are you sure there's a problem with this app ... Nothing fancy about this simple app, it only creates a xxx.desktop file, then run fixmenus ... Nothing more ...
So, if you have problem eith this tool, you must have problems also when installing apps with menu entries ...
I'm not with puppy ... I'm posting from blackberry ... Sorry ..
_________________ My apps
|
Back to top
|
|
 |
big_bass
Joined: 13 Aug 2007 Posts: 1742
|
Posted: Sun 20 Feb 2011, 11:19 Post subject:
|
|
Hey trio
Glad to see you posting again
heres a link to a something doing the same functions *except make the desktop
*I would like to edit the code to edit inside the boxes like you have going
http://www.murga-linux.com/puppy/viewtopic.php?t=57805&start=22
here is a better way to handle the menu items so as they dont get deleted by removing the .desktop entry they just get moved safely to another directory but can be returned when you wish http://www.murga-linux.com/puppy/viewtopic.php?t=40277
I added a fix to auto refresh the menu and added a patch from jemimah
for TXZ pup a great app trapster made
http://www.murga-linux.com/puppy/viewtopic.php?t=40277&start=39
I posted these because the part I like about your code is editing inside the boxes and the drop down box for the choices combining all these good features will make even a better app
the 16*16 images are standard on "puppy" but not standard for an official linux package(but 48*48 should be the minimum size )JWM will resize images anyway and the increased size of larger images is outweighed by having to rebuild all the packages because of non standard image sizes using those micro images also it should be noted that *.png for images should be used instead of *.xpm
thanks for posting your code
Joe
|
Back to top
|
|
 |
Sylvander
Joined: 15 Dec 2008 Posts: 4327 Location: West Lothian, Scotland, UK
|
Posted: Sun 20 Feb 2011, 13:27 Post subject:
|
|
1. "are you sure there's a problem with this app"
Looks like the problem is with downloadflash-001.pet
See this post.in the Lucid Puppy 5.2 thread.
...And the following posts resulting from that.
|
Back to top
|
|
 |
Bert

Joined: 30 Jun 2006 Posts: 1106
|
Posted: Sun 20 Feb 2011, 14:16 Post subject:
|
|
Big_Bass wrote: | the 16*16 images are standard on "puppy" but not standard for an official linux package(but 48*48 should be the minimum size )JWM will resize images anyway and the increased size of larger images is outweighed by having to rebuild all the packages because of non standard image sizes using those micro images also it should be noted that *.png for images should be used instead of *.xpm |
Thanks for explaining this big_bass.
I experimented a little: took your avatar, changed it from GIF to PNG and added an exciting new program to the menu : Big Bass booster...
I did not change the size, and as you can see fbpanel/openbox nicely resized it to a small menu icon.
Description |
|
Filesize |
43.93 KB |
Viewed |
4912 Time(s) |

|
_________________

|
Back to top
|
|
 |
|