Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 30 Sep 2014, 08:27
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Menu Entry Maker 1.1
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 4 [48 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
trio


Joined: 21 Dec 2008
Posts: 1788
Location: अनुमोदना

PostPosted: 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
View user's profile Send private message 
edoc


Joined: 07 Aug 2005
Posts: 4376
Location: Southeast Georgia, USA

PostPosted: 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
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send private message Visit poster's website 
trio


Joined: 21 Dec 2008
Posts: 1788
Location: अनुमोदना

PostPosted: 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
View user's profile Send private message 
edoc


Joined: 07 Aug 2005
Posts: 4376
Location: Southeast Georgia, USA

PostPosted: 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('Rolling Eyes')

Thanks!

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send private message Visit poster's website 
bigpup


Joined: 11 Oct 2009
Posts: 5162
Location: Charleston S.C. USA

PostPosted: 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?
menumaker2.jpg
 Description   
 Filesize   47.8 KB
 Viewed   1065 Time(s)

menumaker2.jpg

Back to top
View user's profile Send private message 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: 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
menumaker.gz
Description 
gz

 Download 
Filename  menumaker.gz 
Filesize  1.16 KB 
Downloaded  289 Time(s) 
menu.png
 Description   
 Filesize   25.82 KB
 Viewed   1104 Time(s)

menu.png


_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though
Back to top
View user's profile Send private message 
tasmod


Joined: 04 Dec 2008
Posts: 1461
Location: North Lincolnshire. UK

PostPosted: 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. Laughing Laughing

_________________
Rob
-
The moment after you press "Post" is the moment you actually see the typso Cool
Back to top
View user's profile Send private message Visit poster's website 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: 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. Laughing Laughing

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

_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 1821
Location: South Australia

PostPosted: 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
View user's profile Send private message Visit poster's website 
Geoffrey


Joined: 30 May 2010
Posts: 1396
Location: Queensland Australia ɹǝpu∩uʍop

PostPosted: 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
menumaker.png
 Description   
 Filesize   29.48 KB
 Viewed   909 Time(s)

menumaker.png

menumaker.gz
Description  1.1.3
gz

 Download 
Filename  menumaker.gz 
Filesize  1.51 KB 
Downloaded  234 Time(s) 

Last edited by Geoffrey on Tue 26 Apr 2011, 20:26; edited 1 time in total
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 1821
Location: South Australia

PostPosted: 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
View user's profile Send private message Visit poster's website 
big_bass

Joined: 13 Aug 2007
Posts: 1747

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

_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 1396
Location: Queensland Australia ɹǝpu∩uʍop

PostPosted: Tue 26 Apr 2011, 21:26    Post subject:  

smokey01 wrote:
Geoffrey I made some mods here:
http://www.murga-linux.com/puppy/viewtopic.php?p=517170#517170


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
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 1396
Location: Queensland Australia ɹǝpu∩uʍop

PostPosted: 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
menumaker.gz
Description 
gz

 Download 
Filename  menumaker.gz 
Filesize  1.72 KB 
Downloaded  220 Time(s) 
Menu_ Entry_Maker-1.1.4.png
 Description   
 Filesize   35.05 KB
 Viewed   819 Time(s)

Menu_ Entry_Maker-1.1.4.png


Last edited by Geoffrey on Sat 30 Apr 2011, 07:31; edited 1 time in total
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 1821
Location: South Australia

PostPosted: 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
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 2 of 4 [48 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0879s ][ Queries: 12 (0.0042s) ][ GZIP on ]