Menu Entry Maker 1.1
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!
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
[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
trio,
Could you add a file search function to step 4 like you have in step 3?
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
the reason here of not having a drop down box for the run command is many possible executables or scripts could be used the whichCould you add a file search function to step 4 like you have in step 3?
command is your friend for finding where the executable is located
*here is a simplified code base
It isnt better just simpler if you wish to hack at it a bit
Joe
- Attachments
-
- menumaker.gz
- (1.16 KiB) Downloaded 507 times
-
- menu.png
- (25.82 KiB) Downloaded 1228 times
Hey tasmodtasmod wrote:Great for a menu entry.
However what I would like to see is a Category maker and menu entry maker to populate it.
The (maker) part for a new *.desktop relies on prior package building knowledge to make it work using any GUI because it is for advanced users trio did however make a tool
to guide people a bit further I would hope that this work continues we will get closer
to an automatic tool someday if we keep at it
The (editing of an already made *.desktop)
can have the fields auto generated in the GUI
since someone already did that part
nice coding trio I use Xdialog alot
and gtkdialog only a very little bit
its nice that you posted your example
I collect small apps to modify
thats why I simplified it only to understand
what was happening better with the gtkdiaolg part
Joe
Menu Entry Maker 1.1 is a great little GUI but I have noticed a couple of traps.
1. You must delete the hint text before populating the field.
2. When choosing an icon it really should be 16x16 pixels only
3. If you delete the .desktop file other than with MEM it doesn't delete it from the menu. Running fixmenus, restart JWM or Restart X Server didn't fix it either. Reboot did. I guess the info is live in memory.
It would be nice to be able to edit an existing entry. I guess it is possible to delete and create a new entry instead.
Thanks
1. You must delete the hint text before populating the field.
2. When choosing an icon it really should be 16x16 pixels only
3. If you delete the .desktop file other than with MEM it doesn't delete it from the menu. Running fixmenus, restart JWM or Restart X Server didn't fix it either. Reboot did. I guess the info is live in memory.
It would be nice to be able to edit an existing entry. I guess it is possible to delete and create a new entry instead.
Thanks
Something like this, made the gui a bit smaller and gave it tool-tip text for the examples.bigpup wrote:trio,
Could you add a file search function to step 4 like you have in step 3?
Edit: removed button icons making it even smaller, renamed to 1.1.3 due to smokey01 already posting
a updated version named 1.1.2
- Attachments
-
- menumaker.png
- (29.48 KiB) Downloaded 1062 times
-
- menumaker.gz
- 1.1.3
- (1.51 KiB) Downloaded 483 times
Last edited by Geoffrey on Wed 27 Apr 2011, 00:26, edited 1 time in total.
Geoffrey I made some mods here:
http://www.murga-linux.com/puppy/viewto ... 170#517170
http://www.murga-linux.com/puppy/viewto ... 170#517170
even more hacking fun comingIt would be nice to be able to edit an existing entry. I guess it is possible to delete and create a new entry instead.
your way
http://www.murga-linux.com/puppy/viewto ... 5&start=22
Joe
Sorry about that smokey, I was unaware that you had posted version 1.1.2smokey01 wrote:Geoffrey I made some mods here:
http://www.murga-linux.com/puppy/viewto ... 170#517170
I've edited my post to make it 1.1.3
The reason I changed it the way I did, is that there are those that know how it works and the extra info text isn't really required
I guess for me, it's more or less a personal preference.
I find it useful, beats using the text editor
I've updated this script yet again, I hope nobody minds me doing this, but I could see where it could be improved a little more.
It now creates a tmp dir where it re-formats the file name, so now it does not matter if there are spaces in the name,
they will automatically be replaced with a minus sign "-".
Changed this part of the script from this
To this
Does the same thing
added tooltip-text to the app text, now if you hover over "Create a menu entry" it will popup a reference Trio as being the original script writer
It now creates a tmp dir where it re-formats the file name, so now it does not matter if there are spaces in the name,
they will automatically be replaced with a minus sign "-".
Changed this part of the script from this
Code: Select all
echo "[Desktop Entry]" > /usr/share/applications/"$PACKNAME".desktop
echo "Encoding=UTF-8" >> /usr/share/applications/"$PACKNAME".desktop
echo "Name=$MENUNAME" >> /usr/share/applications/"$PACKNAME".desktop
echo "Icon=$MENUICON" >> /usr/share/applications/"$PACKNAME".desktop
echo "Comment=$MENUNAME" >> /usr/share/applications/"$PACKNAME".desktop
echo "Exec=$MENUEXEC" >> /usr/share/applications/"$PACKNAME".desktop
echo "Terminal=false" >> /usr/share/applications/"$PACKNAME".desktop
echo "Type=Application" >> /usr/share/applications/"$PACKNAME".desktop
echo "Categories=$CATEGORY" >> /usr/share/applications/"$PACKNAME".desktop
echo "GenericName=$MENUNAME" >> /usr/share/applications/"$PACKNAME".desk
Code: Select all
echo "[Desktop Entry]" > /usr/share/applications/"$PACKNAME".desktop # modified by Geoffrey
echo "Encoding=UTF-8
Name=$MENUNAME
Icon=$MENUICON
Comment=$MENUNAME
Exec=$MENUEXEC
Terminal=false
Type=Application
Categories=$CATEGORY
GenericName=$MENUNAME" >> /usr/share/applications/"$PACKNAME".desktop
added tooltip-text to the app text, now if you hover over "Create a menu entry" it will popup a reference Trio as being the original script writer
- Attachments
-
- menumaker.gz
- (1.72 KiB) Downloaded 426 times
-
- Menu_ Entry_Maker-1.1.4.png
- (35.05 KiB) Downloaded 952 times
Last edited by Geoffrey on Sat 30 Apr 2011, 11:31, edited 1 time in total.
Geoffrey I like the way you have implemented the help.
I don't get the same icon here as your screenshot. Mine still shows the brief case.
I rather like the idea of not having to type paths and filenames that why I made mine drag and drop. Less mistakes that way.
If you package it as a .pet file more will appreciate it.
good job.
I don't get the same icon here as your screenshot. Mine still shows the brief case.
I rather like the idea of not having to type paths and filenames that why I made mine drag and drop. Less mistakes that way.
If you package it as a .pet file more will appreciate it.
good job.
Hi smokey01
Thanks for the kinds words, the icon in the screenshot is because I'm using the Blue-Moon icon theme.
As for drag and drop you can do the same with this version also.
I just made a pet package of it so I'll upload it here
Geoffrey
Thanks for the kinds words, the icon in the screenshot is because I'm using the Blue-Moon icon theme.
As for drag and drop you can do the same with this version also.
I just made a pet package of it so I'll upload it here
Geoffrey
- Attachments
-
- menumaker-1.1.4.pet
- (2.16 KiB) Downloaded 556 times
Yes but it doesn't take you to where the icons are located which makes it easier to drag and drop them into the white space.Geoffrey wrote:Hi smokey01
As for drag and drop you can do the same with this version also.
Geoffrey
The same principle with the executable.
Sorry I must not have made myself clear.
Thanks
smokey01smokey01 wrote:Yes but it doesn't take you to where the icons are located which makes it easier to drag and drop them into the white space.Geoffrey wrote:Hi smokey01
As for drag and drop you can do the same with this version also.
Geoffrey
The same principle with the executable.
Sorry I must not have made myself clear.
Thanks
Yes, I had a look at your script, I see what you mean now, though I'm thinking that I may find a more elegant way to do it.
It doesn't really need the path to the icon included, only the icon name as it will be found anyway as it is already in the path,
so you could just type the name of the icon and it will work just the same, you can try that and you will see what I mean.
icons will be found if they are in /usr/share/icons and /usr/share/pixmaps as well.
As an example if I want to add the icon /usr/local/lib/X11/mini-icons/abiword_16.xpm
I only need type in abiword_16 the xpm extension isn't needed either
the only time you need the path to the icon is if it's located in a different directory, such firefox for instance
then the path to the icon would be /usr/lib/firefox/icons/mozicon128.png.
Here's a test you can do to see how it works, copy the feed_icon.png to /usr/share/icons then create a menu entry, just give it a title and description
no need for a app and for the icon just type in "feed_icon" and look at the menu, it should have that icon.
Geoffrey
- Attachments
-
- feed_icon.png
- (1.54 KiB) Downloaded 1395 times
Well I've done some more work on this script,
before I get on with it, in my previous post I stated that "icons will be found if they are in /usr/share/icons and /usr/share/pixmaps as well."
I was wrong, they won't be found in /usr/share/pixmaps.
As for the script I've done some more improvements, this will be called 1.1.5, the first thing I've changed is that it now removes the
path text for the exec, only for /usr/bin, /usr/sbin, /usr/local/bin and the icons if their in /usr/share/icons and /usr/local/lib/X11/mini-icons.
It would have looked like this:
But now looks like this, which is more inline with the standard:
The other thing I did was to incorporate xdialog editbox, so now you can edit as well as delete existing menu entries.
I think someone was asking for that feature, which I feel is needed to make it a more useful application.
I will only upload a gz of it so those that are interested can test it for me, I did have a few bugs with the editor but it seems ok now.
once I know it's all ok I'll package it up,
before I get on with it, in my previous post I stated that "icons will be found if they are in /usr/share/icons and /usr/share/pixmaps as well."
I was wrong, they won't be found in /usr/share/pixmaps.
As for the script I've done some more improvements, this will be called 1.1.5, the first thing I've changed is that it now removes the
path text for the exec, only for /usr/bin, /usr/sbin, /usr/local/bin and the icons if their in /usr/share/icons and /usr/local/lib/X11/mini-icons.
It would have looked like this:
Code: Select all
[Desktop Entry]
Encoding=UTF-8
Name=menu entry maker
Icon=/usr/local/lib/X11/mini-icons/mini.letter.xpm
Comment=menu entry maker
Exec=/usr/sbin/menumaker
Terminal=false
Type=Application
Categories=AudioVideo
GenericName=menu entry maker
Code: Select all
[Desktop Entry]
Encoding=UTF-8
Name=menu entry maker
Icon=mini.letter.xpm
Comment=menu entry maker
Exec=menumaker
Terminal=false
Type=Application
Categories=AudioVideo
GenericName=menu entry maker
I think someone was asking for that feature, which I feel is needed to make it a more useful application.
I will only upload a gz of it so those that are interested can test it for me, I did have a few bugs with the editor but it seems ok now.
once I know it's all ok I'll package it up,
- Attachments
-
- menumaker.gz
- Menu Entry Maker 1.1.5
- (2.26 KiB) Downloaded 470 times
Last edited by Geoffrey on Thu 05 May 2011, 05:23, edited 1 time in total.
well it still has a bug with the edit, if menumaker is run from the menu edit won't work, it's a path problem.
Edit looks for menumaker in root and can't find it, it works fine if the script is run directly no matter where it is.
I can't seem to be able to get my head around this, I must be missing something.
EDIT:
I found the problem it couldn't find the "pwd" for menuedit, so I defaulted it /usr/sbin, this means that menumaker as to be in that dir.
That should be ok it's a good place for it to live, I'll replace the gz file in the previous post, so the 7 people that downloaded it should get it again if they wish
It's still for testing, I just need some feedback as to whether it's acceptable as it is.
Edit looks for menumaker in root and can't find it, it works fine if the script is run directly no matter where it is.
I can't seem to be able to get my head around this, I must be missing something.
EDIT:
I found the problem it couldn't find the "pwd" for menuedit, so I defaulted it /usr/sbin, this means that menumaker as to be in that dir.
That should be ok it's a good place for it to live, I'll replace the gz file in the previous post, so the 7 people that downloaded it should get it again if they wish
It's still for testing, I just need some feedback as to whether it's acceptable as it is.