Page 1 of 3

Menu Entry Maker 1.1

Posted: Fri 18 Feb 2011, 15:13
by trio
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

Posted: Fri 18 Feb 2011, 17:01
by DaveS
Thanks Trio... loads easier than creating a .desktop file by hand :)

Posted: Fri 18 Feb 2011, 20:44
by Bert
+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...

Image

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.
:roll: 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.. :oops: )

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 :wink: ?

Thanks again Trio!

Posted: Fri 18 Feb 2011, 23:52
by trio
DaveS
Welcome!
:lol:

Bert
Great it works! :D

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:
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 :lol: 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....

Posted: Sat 19 Feb 2011, 01:24
by trio
Version 1.1 - add function to delete a menu entry

Download at mainpost

Posted: Sat 19 Feb 2011, 02:55
by `f00
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 :lol: )

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 :)

Posted: Sat 19 Feb 2011, 05:14
by GustavoYz
Great Idea, going to see how it works for me...
It could be useful for 'pet packaging' too.
Thanks.

Re: Menu Entry Maker 1.1

Posted: Sat 19 Feb 2011, 15:40
by sheldonisaac
(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

Posted: Sat 19 Feb 2011, 15:57
by amigo
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....

Posted: Sat 19 Feb 2011, 16:16
by Bert
amigo wrote: -next thing we'll see that the tool becomes a general backup-snapshot-remote_installer-desktop_animation_setter-disk_defragger thingy....
LOL...
:lol:

Seriously, I think the two functions -adding and removing a menu entry- are a logical combination.

Thanks again trio!

Posted: Sun 20 Feb 2011, 11:50
by Sylvander
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.

Posted: Sun 20 Feb 2011, 12:06
by trio
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 ..

Posted: Sun 20 Feb 2011, 15:19
by big_bass
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/viewto ... 5&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/viewto ... 7&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

Posted: Sun 20 Feb 2011, 17:27
by Sylvander
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.

Posted: Sun 20 Feb 2011, 18:16
by Bert
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... :lol:
I did not change the size, and as you can see fbpanel/openbox nicely resized it to a small menu icon.

Posted: Mon 21 Feb 2011, 10:49
by trio
@Big Bass

Go ahead, edit, modify, anything ........ If this humble little idea can be some of use for you ..... I am not intending this to be a long term project

Cheers

Posted: Thu 07 Apr 2011, 16:37
by edoc
Is it safe to try this in Fluppy 013?

Posted: Thu 07 Apr 2011, 22:50
by trio
It's safe as long as you don't try to install this while drunk driving ... Hehehe

Posted: Thu 07 Apr 2011, 23:04
by edoc
OK, I just thought I'd ask because over the years many new apps that are not matched to the distro have changed versions of dependencies, broken links, or trashed CUPS (the latter is not hard to do).

I have learned the hard way to ask first! javascript:emoticon(':roll:')

Thanks!

Posted: Sun 24 Apr 2011, 15:56
by bigpup
trio,

Could you add a file search function to step 4 like you have in step 3?