Menu Entry Maker 1.1

Miscellaneous tools
Message
Author
User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

Menu Entry Maker 1.1

#1 Post 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
Attachments
menumaker-1.1.jpg
(22.2 KiB) Downloaded 5743 times
menumaker-1.1.pet
(2.02 KiB) Downloaded 2647 times
Last edited by trio on Sat 19 Feb 2011, 01:27, edited 3 times in total.

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#2 Post by DaveS »

Thanks Trio... loads easier than creating a .desktop file by hand :)
Spup Frugal HD and USB
Root forever!

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#3 Post 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!
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#4 Post 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....

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#5 Post by trio »

Version 1.1 - add function to delete a menu entry

Download at mainpost

User avatar
`f00
Posts: 807
Joined: Thu 06 Nov 2008, 19:13
Location: the Western Reserve

#6 Post 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 :)
Last edited by `f00 on Sat 19 Feb 2011, 08:54, edited 1 time in total.

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#7 Post by GustavoYz »

Great Idea, going to see how it works for me...
It could be useful for 'pet packaging' too.
Thanks.

sheldonisaac
Posts: 902
Joined: Mon 22 Jun 2009, 01:36
Location: Philadelphia, PA

Re: Menu Entry Maker 1.1

#8 Post 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
Dell E6410: BusterPup, BionicPup64, Xenial, etc
Intel DQ35JOE, Dell Vostro 430
Dell Inspiron, Acer Aspire One, EeePC 1018P

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#9 Post 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....

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#10 Post 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!
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#11 Post 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.

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#12 Post 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 ..

big_bass
Posts: 1740
Joined: Mon 13 Aug 2007, 12:21

#13 Post 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

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#14 Post 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.

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#15 Post 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.
Attachments
big-bass-screensh.png
(43.93 KiB) Downloaded 5294 times
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#16 Post 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

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#17 Post by edoc »

Is it safe to try this in Fluppy 013?
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#18 Post by trio »

It's safe as long as you don't try to install this while drunk driving ... Hehehe

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#19 Post 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!
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#20 Post by bigpup »

trio,

Could you add a file search function to step 4 like you have in step 3?
Attachments
menumaker2.jpg
(47.8 KiB) Downloaded 1190 times

Post Reply