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 Sun 23 Nov 2014, 05:35
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 3 of 4 [48 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
Geoffrey


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

PostPosted: Sat 30 Apr 2011, 07:18    Post subject:  

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
menumaker-1.1.4.pet
Description 
pet

 Download 
Filename  menumaker-1.1.4.pet 
Filesize  2.16 KB 
Downloaded  311 Time(s) 
Back to top
View user's profile Send private message 
smokey01


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

PostPosted: Sat 30 Apr 2011, 07:28    Post subject:  

Geoffrey wrote:
Hi smokey01

As for drag and drop you can do the same with this version also.

Geoffrey


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.

The same principle with the executable.

Sorry I must not have made myself clear.

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: 1469
Location: Queensland Australia ɹǝpu∩uʍop

PostPosted: Sat 30 Apr 2011, 11:33    Post subject:  

smokey01 wrote:
Geoffrey wrote:
Hi smokey01

As for drag and drop you can do the same with this version also.

Geoffrey


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.

The same principle with the executable.

Sorry I must not have made myself clear.

Thanks


smokey01

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
feed_icon.png
 Description   
 Filesize   1.54 KB
 Viewed   1285 Time(s)

feed_icon.png

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


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

PostPosted: Wed 04 May 2011, 07:25    Post subject:  

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:
Code:
[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


But now looks like this, which is more inline with the standard:
Code:
[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


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,
menumaker.gz
Description  Menu Entry Maker 1.1.5
gz

 Download 
Filename  menumaker.gz 
Filesize  2.26 KB 
Downloaded  278 Time(s) 

Last edited by Geoffrey on Thu 05 May 2011, 01:23; edited 1 time in total
Back to top
View user's profile Send private message 
Geoffrey


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

PostPosted: Wed 04 May 2011, 18:23    Post subject:  

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


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

PostPosted: Fri 06 May 2011, 10:38    Post subject:  

Here's another update, I added a conformation box for the delete, it was dangerous the way it was, resized the delete/edit menu window.

It's looking a lot better now, I haven't changed how it acquires icons or applications, if used with thunar file manager there is no drag and drop.

Will have to find another way to select icons, maybe a list with icon preview would be the way to go for stock icons.

It still needs to be in the /usr/sbin directory.
menumaker.gz
Description  menumaker 1.1.6
gz

 Download 
Filename  menumaker.gz 
Filesize  2.39 KB 
Downloaded  289 Time(s) 
Back to top
View user's profile Send private message 
Geoffrey


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

PostPosted: Sun 08 May 2011, 01:39    Post subject:  

Well this will be my last one, I'm happy with it, does all I need it to do.

this is version 1.1.7, basically a tidy up of the GUI's so that it is more uniform with different themes.

someone else maybe able to improve it.
menumaker-1.1.7.pet
Description 
pet

 Download 
Filename  menumaker-1.1.7.pet 
Filesize  2.86 KB 
Downloaded  321 Time(s) 
Back to top
View user's profile Send private message 
DaveS


Joined: 09 Oct 2008
Posts: 3726
Location: UK

PostPosted: Mon 20 Jun 2011, 03:58    Post subject:  

Geoffrey wrote:
Well this will be my last one, I'm happy with it, does all I need it to do.

this is version 1.1.7, basically a tidy up of the GUI's so that it is more uniform with different themes.

someone else maybe able to improve it.


Something is wrong with the code here. Try as a command line say,
Code:
rox /root/'some directory'
and see what happens Smile
Works in Trios original Smile

_________________
Spup Frugal HD and USB
Root forever!
Back to top
View user's profile Send private message 
Geoffrey


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

PostPosted: Fri 24 Jun 2011, 21:30    Post subject:  

DaveS wrote:
Geoffrey wrote:
Well this will be my last one, I'm happy with it, does all I need it to do.

this is version 1.1.7, basically a tidy up of the GUI's so that it is more uniform with different themes.

someone else maybe able to improve it.


Something is wrong with the code here. Try as a command line say,
Code:
rox /root/'some directory'
and see what happens Smile
Works in Trios original Smile


I don't seem to understand what you mean, It works fine for me, though I edited the script with and am using it with quirky 120 NOP.

With no rox only thunar I don't have drag and drop functionality using thunar.

All the fields need to be filled for it to function correctly, this is about the only fault I've found with it,

example, if were to miss a entry, all entries after that wouldn't be added to the "xxx.desktop" file

Could you explain in a little more detail the problem, or suggest what needs to be fixed, I find this script very useful and would like fix it.

edit: I found a error, don't know if it as anything to do with the problem your having thought, I'll upload a new pet.
menumaker-1.1.8.pet
Description  new pet with a minor fix of a error in the script
pet

 Download 
Filename  menumaker-1.1.8.pet 
Filesize  3 KB 
Downloaded  248 Time(s) 
Back to top
View user's profile Send private message 
DaveS


Joined: 09 Oct 2008
Posts: 3726
Location: UK

PostPosted: Sat 25 Jun 2011, 02:19    Post subject:  

Tried latest version, same problem. Here is the output when using rox /root/downloads/ as cmd line
Code:
[Desktop Entry]
Encoding=UTF-8
Name=Downloads2
Icon=/usr/share/midi-icons/folder48.png
Comment=Downloads2
Exec=rox
Terminal=false
Type=Application
Categories=X-FilesystemUtility
GenericName=Downloads2
Exec=/root/downloads/
Terminal=false
Type=Application
Categories=X-FilesystemUtility
GenericName=Downloads2


Notice two exec commands. I did not use drag and drop to create command line, typed it in direct.

_________________
Spup Frugal HD and USB
Root forever!
Back to top
View user's profile Send private message 
Geoffrey


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

PostPosted: Sat 25 Jun 2011, 03:47    Post subject:  

DaveS,

Ah, I see the problem, I will fix that, it's the way It cuts the data from the temp file, it won't copy the space in the field so sees it as two entries.

I'll get on to it ASAP, thanks for the feedback, let me know if you find anything else wrong. Wink

Geoffrey

Edit: I fixed that problem, should be ok now DaveS, works a lot better, the code now look like this, the way it should
Code:
[Desktop Entry]
Encoding=UTF-8
Name=Downloads2
Icon=/usr/share/midi-icons/folder48.png
Comment=Downloads2
Exec=rox /root/downloads/
Terminal=false
Type=Application
Categories=X-FilesystemUtility
GenericName=Downloads2
menumaker-1.1.9.pet
Description  fixed problem as described by DaveS, please test this, let me know if any faults or functions missing compared to the original by Trio
pet

 Download 
Filename  menumaker-1.1.9.pet 
Filesize  3 KB 
Downloaded  272 Time(s) 
Back to top
View user's profile Send private message 
Geoffrey


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

PostPosted: Sat 25 Jun 2011, 21:59    Post subject:  

DaveS,

I fixed it, see previous post

Geoffrey
Back to top
View user's profile Send private message 
DaveS


Joined: 09 Oct 2008
Posts: 3726
Location: UK

PostPosted: Sun 26 Jun 2011, 03:56    Post subject:  

Working very nicely now thanks. I love the edit and delete functions Smile
_________________
Spup Frugal HD and USB
Root forever!
Back to top
View user's profile Send private message 
Geoffrey


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

PostPosted: Sun 26 Jun 2011, 04:37    Post subject:  

DaveS wrote:
Working very nicely now thanks. I love the edit and delete functions Smile


Thanks DaveS,

the edit function was already there, I just added the confirmation box to stop accidents and the edit is something that I thought it needed.

Over all it hasn't turned out to bad, I use it quite a bit, though I've never used in the manner that you showed me,

thanks I would never of realized, now I'm happy to see that it's working for you.

oh! yes, the problem of the with the (xxx.desktop) file not being usable if a entry preceding the exec entry is missed, seem to be fixed

so thats a bonus

Geoffrey
Back to top
View user's profile Send private message 
DaveS


Joined: 09 Oct 2008
Posts: 3726
Location: UK

PostPosted: Sun 26 Jun 2011, 04:44    Post subject:  

Yes, its great to be able to add shortcuts to file locations, and even to be able to load a file in its parent application using a menu entry. This is especially useful for Puppies that use maybe Tint2 or Fbpanel where launcher options are more limited.
Much lighter on code than adding a launcher program.
I guess using this would make it reasonably easy to use say Openbox with no taskbar at all. Smile

_________________
Spup Frugal HD and USB
Root forever!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 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.1261s ][ Queries: 12 (0.0357s) ][ GZIP on ]