| Author |
Message |
trio

Joined: 21 Dec 2008 Posts: 1786 Location: अनुमोदना
|
Posted: Mon 21 Feb 2011, 06:49 Post subject:
|
|
@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
_________________ PET Maker|WbarCC|My Website
|
|
Back to top
|
|
 |
edoc

Joined: 07 Aug 2005 Posts: 3942 Location: Southeast Georgia, USA
|
Posted: Thu 07 Apr 2011, 12:37 Post subject:
|
|
Is it safe to try this in Fluppy 013?
_________________ Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Multiple computers - currently running Puppy Exprimo ver. 5x15
|
|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 1786 Location: अनुमोदना
|
Posted: Thu 07 Apr 2011, 18:50 Post subject:
|
|
It's safe as long as you don't try to install this while drunk driving ... Hehehe
_________________ PET Maker|WbarCC|My Website
|
|
Back to top
|
|
 |
edoc

Joined: 07 Aug 2005 Posts: 3942 Location: Southeast Georgia, USA
|
Posted: Thu 07 Apr 2011, 19:04 Post subject:
|
|
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(' ')
Thanks!
_________________ Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Multiple computers - currently running Puppy Exprimo ver. 5x15
|
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 3692 Location: Charleston S.C. USA
|
Posted: Sun 24 Apr 2011, 11:56 Post subject:
|
|
trio,
Could you add a file search function to step 4 like you have in step 3?
| Description |
|
| Filesize |
47.8 KB |
| Viewed |
983 Time(s) |

|
|
|
Back to top
|
|
 |
big_bass

Joined: 13 Aug 2007 Posts: 1736
|
Posted: Sun 24 Apr 2011, 20:39 Post subject:
|
|
| Quote: | | Could you add a file search function to step 4 like you have in step 3? |
the reason here of not having a drop down box for the run command is many possible executables or scripts could be used the which
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
| Description |
|

Download |
| Filename |
menumaker.gz |
| Filesize |
1.16 KB |
| Downloaded |
232 Time(s) |
| Description |
|
| Filesize |
25.82 KB |
| Viewed |
991 Time(s) |

|
_________________ slackware 14
|
|
Back to top
|
|
 |
tasmod

Joined: 04 Dec 2008 Posts: 1460 Location: North Lincolnshire. UK
|
Posted: Mon 25 Apr 2011, 04:31 Post subject:
|
|
Great for a menu entry.
However what I would like to see is a Category maker and menu entry maker to populate it.
_________________ Rob
-
The moment after you press "Post" is the moment you actually see the typso 
|
|
Back to top
|
|
 |
big_bass

Joined: 13 Aug 2007 Posts: 1736
|
Posted: Mon 25 Apr 2011, 12:27 Post subject:
|
|
| tasmod wrote: | Great for a menu entry.
However what I would like to see is a Category maker and menu entry maker to populate it.  |
Hey tasmod
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
_________________ slackware 14
|
|
Back to top
|
|
 |
smokey01

Joined: 30 Dec 2006 Posts: 1642 Location: South Australia
|
Posted: Mon 25 Apr 2011, 19:21 Post subject:
|
|
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
_________________ Puppy Software <-> Distros <-> Puppy Linux Tips
|
|
Back to top
|
|
 |
Geoffrey

Joined: 30 May 2010 Posts: 935 Location: Queensland Australia ɹǝpu∩uʍop
|
Posted: Tue 26 Apr 2011, 03:02 Post subject:
|
|
| bigpup wrote: | trio,
Could you add a file search function to step 4 like you have in step 3? |
Something like this, made the gui a bit smaller and gave it tool-tip text for the examples.
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
| Description |
|
| Filesize |
29.48 KB |
| Viewed |
815 Time(s) |

|
| Description |
1.1.3
|

Download |
| Filename |
menumaker.gz |
| Filesize |
1.51 KB |
| Downloaded |
184 Time(s) |
Last edited by Geoffrey on Tue 26 Apr 2011, 20:26; edited 1 time in total
|
|
Back to top
|
|
 |
smokey01

Joined: 30 Dec 2006 Posts: 1642 Location: South Australia
|
Posted: Tue 26 Apr 2011, 04:46 Post subject:
|
|
Geoffrey I made some mods here:
http://www.murga-linux.com/puppy/viewtopic.php?p=517170#517170
_________________ Puppy Software <-> Distros <-> Puppy Linux Tips
|
|
Back to top
|
|
 |
big_bass

Joined: 13 Aug 2007 Posts: 1736
|
Posted: Tue 26 Apr 2011, 11:14 Post subject:
|
|
| Quote: | | 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. |
even more hacking fun coming
your way
http://www.murga-linux.com/puppy/viewtopic.php?t=57805&start=22
Joe
_________________ slackware 14
|
|
Back to top
|
|
 |
Geoffrey

Joined: 30 May 2010 Posts: 935 Location: Queensland Australia ɹǝpu∩uʍop
|
Posted: Tue 26 Apr 2011, 21:26 Post subject:
|
|
Sorry about that smokey, I was unaware that you had posted version 1.1.2
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
|
|
Back to top
|
|
 |
Geoffrey

Joined: 30 May 2010 Posts: 935 Location: Queensland Australia ɹǝpu∩uʍop
|
Posted: Sat 30 Apr 2011, 04:17 Post subject:
|
|
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
| Code: | 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 |
To this
| Code: | 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 |
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
| Description |
|

Download |
| Filename |
menumaker.gz |
| Filesize |
1.72 KB |
| Downloaded |
170 Time(s) |
| Description |
|
| Filesize |
35.05 KB |
| Viewed |
749 Time(s) |

|
Last edited by Geoffrey on Sat 30 Apr 2011, 07:31; edited 1 time in total
|
|
Back to top
|
|
 |
smokey01

Joined: 30 Dec 2006 Posts: 1642 Location: South Australia
|
Posted: Sat 30 Apr 2011, 06:24 Post subject:
|
|
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.
_________________ Puppy Software <-> Distros <-> Puppy Linux Tips
|
|
Back to top
|
|
 |
|