View previous topic :: View next topic |
Author |
Message |
TanNewt Retired Dev
Joined: 26 Mar 2004 Posts: 340 Location: Seattle, WA
|
Posted: Tue Dec 21, 2004 1:37 am Post subject: Denu 2.0 - GUI based menu editing. |
|
|
I just released denu 2.0. URL It supports gnome, fluxbox, openbox and waimea and may support the current kde. Denu enables one to create their menu structure and have it generated for their window manage(assuming its supported).
On the left are two boxes one for programs, which is entries for the installed programs (based on portage), and another for special menu items such as separators. One uses add or rem to add or remove either a program or special accordingly. After the desired structure is achieved one hits Generate and then the proper window manager.
Please beware that it will overwrite menu files and may botch them. If that happens post here and I will try to help.
Please give me any feedback on the interface, coding or the program in general.
Download Link
Thanks,
Scott Shawcroft.
Last edited by TanNewt on Sat Mar 12, 2005 5:32 pm; edited 1 time in total |
|
Back to top |
|
|
RMX n00b
Joined: 22 Aug 2004 Posts: 66
|
Posted: Tue Dec 21, 2004 8:12 pm Post subject: |
|
|
Code: | rmx@tux % denu ~
Traceback (most recent call last):
File "/usr/bin/denu", line 1049, in ?
treeviewdndex = DenuGUI()
File "/usr/bin/denu", line 952, in __init__
pickle.dump(mt,open(filename,'w'))
IOError: [Errno 2] No such file or directory: '/home/rmx/.denu/lastmenu.p'
rmx@tux % touch /home/rmx/.denu/lastmenu.p ~
touch: cannot touch `/home/rmx/.denu/lastmenu.p': No such file or directory
rmx@tux % mkdir /home/rmx/.denu/ ~
rmx@tux % touch /home/rmx/.denu/lastmenu.p ~
rmx@tux % denu ~
Traceback (most recent call last):
File "/usr/bin/denu", line 1049, in ?
treeviewdndex = DenuGUI()
File "/usr/bin/denu", line 953, in __init__
self.load_struct(filename, self.menustore)
File "/usr/bin/denu", line 534, in load_struct
structure = pickle.load(open(filename,'r'))
File "/usr/lib/python2.3/pickle.py", line 1390, in load
return Unpickler(file).load()
File "/usr/lib/python2.3/pickle.py", line 872, in load
dispatch[key](self)
File "/usr/lib/python2.3/pickle.py", line 894, in load_eof
raise EOFError
EOFError
rmx@tux % |
I'm very interested on your project, but it won't work for me... |
|
Back to top |
|
|
bladdo Guru
Joined: 19 Jul 2004 Posts: 334 Location: NJ
|
Posted: Tue Dec 21, 2004 8:30 pm Post subject: |
|
|
I get this error
Code: |
Traceback (most recent call last):
File "/usr/bin/denu", line 1049, in ?
treeviewdndex = DenuGUI()
File "/usr/bin/denu", line 952, in __init__
pickle.dump(mt,open(filename,'w'))
IOError: [Errno 2] No such file or directory: '/home/mi/.denu/lastmenu.p'
|
_________________ Bladdo formerly >Milo<
bladdo.net - scripting and design
Creator of AIM Bot: Tiny Tiny Bot - the bot that learns
distro: gentoo | window manager: pekwm |
|
Back to top |
|
|
TanNewt Retired Dev
Joined: 26 Mar 2004 Posts: 340 Location: Seattle, WA
|
Posted: Tue Dec 21, 2004 8:45 pm Post subject: |
|
|
Alright, this is my fault. DO NOT create the lastmenu.p file (RMX delete yours) but DO create the .denu directory in your home directory. Then run denu. What window managers are you guys running? I was just looking at the code and KDE WILL NOT work. If you need KDE I can tell you how to edit it but expect another version in a couple of days with that fixed.
UPDATE: Both this error and the KDE errors should be fixed in the current cvs version. So now denu should work. KDE support my work. I haven't tested it though. |
|
Back to top |
|
|
bladdo Guru
Joined: 19 Jul 2004 Posts: 334 Location: NJ
|
Posted: Tue Dec 21, 2004 9:15 pm Post subject: |
|
|
Im running on OpenBox3. So I made a .denu folder and now I'm onto the next set of errors :/
Code: |
┌(mi@PerlBoxX)-(0)-(12:48 PM Sat Dec 25)->
└-(~)-(26 files, 4.4Mb)--> denu
** (denu:17851): WARNING **: `GtkTextSearchFlags' is not an enum type
/home/mi/.gtkrc-2.0:6: error: unexpected character `}', expected keyword - e.g. `style'
Traceback (most recent call last):
File "/usr/bin/denu", line 1049, in ?
treeviewdndex = DenuGUI()
File "/usr/bin/denu", line 965, in __init__
self.specialstore.append(None, ['label', 'Standard', '', self.pixbuf_manager('denu_folder.png'), ''])
File "/usr/bin/denu", line 706, in pixbuf_manager
self.pixbuf_index[filename] = gtk.gdk.pixbuf_new_from_file_at_size('/usr/share/pixmaps/' + filename, 16, 16)
AttributeError: 'module' object has no attribute 'pixbuf_new_from_file_at_size'
|
_________________ Bladdo formerly >Milo<
bladdo.net - scripting and design
Creator of AIM Bot: Tiny Tiny Bot - the bot that learns
distro: gentoo | window manager: pekwm |
|
Back to top |
|
|
TanNewt Retired Dev
Joined: 26 Mar 2004 Posts: 340 Location: Seattle, WA
|
Posted: Tue Dec 21, 2004 9:18 pm Post subject: |
|
|
What version of python, pygtk and gtk+ do you have?
I have python 2.3.4, pygtk 2.4.1 and gtk+ 2.4.13-r1 |
|
Back to top |
|
|
RMX n00b
Joined: 22 Aug 2004 Posts: 66
|
Posted: Wed Dec 22, 2004 12:30 pm Post subject: |
|
|
rmx@tux % denu ~
Traceback (most recent call last):
File "/usr/bin/denu", line 1049, in ?
treeviewdndex = DenuGUI()
File "/usr/bin/denu", line 965, in __init__
self.specialstore.append(None, ['label', 'Standard', '', self.pixbuf_manager('denu_folder.png'), ''])
File "/usr/bin/denu", line 703, in pixbuf_manager
file = open('/usr/share/pixmaps/' + filename, 'w')
IOError: [Errno 13] Permission denied: '/usr/share/pixmaps/denu_folder.png'
When I try to chmod that file, it says that I don't have it...
rmx@tux % sudo chmod 774 /usr/share/pixmaps/denu_folder.png ~
chmod: cannot access `/usr/share/pixmaps/denu_folder.png': No such file or directory |
|
Back to top |
|
|
lightvhawk0 Guru
Joined: 07 Nov 2003 Posts: 388
|
Posted: Wed Dec 22, 2004 6:36 pm Post subject: |
|
|
I've got a fix
ACCEPT_KEYWORDS="~amd64" emerge pygtk so i can have version 2.41
now sudo chmod 777 /usr/share/pixmaps
now it works _________________ If God has made us in his image, we have returned him the favor. - Voltaire |
|
Back to top |
|
|
TanNewt Retired Dev
Joined: 26 Mar 2004 Posts: 340 Location: Seattle, WA
|
Posted: Wed Dec 22, 2004 7:25 pm Post subject: |
|
|
RMX, chmod the /usr/share/pixmaps folder. Lightvhawk0, you got it to work on amd64? HOw do you like it etc.? |
|
Back to top |
|
|
lightvhawk0 Guru
Joined: 07 Nov 2003 Posts: 388
|
Posted: Wed Dec 22, 2004 7:33 pm Post subject: |
|
|
TanNewt wrote: | RMX, chmod the /usr/share/pixmaps folder. Lightvhawk0, you got it to work on amd64? HOw do you like it etc.? |
I like it but the proggy is noisey, if you click on add without anything being selected the program puts out this error message
Code: | Traceback (most recent call last):
File "/usr/bin/denu", line 573, in move_selected
value = storesource.get_value(iter, 0)
TypeError: iter must be a GtkTreeIter |
other than that it saves me from the nasty xml menus of waimea ugh i like it a lot _________________ If God has made us in his image, we have returned him the favor. - Voltaire |
|
Back to top |
|
|
Dhaki Guru
Joined: 16 Jun 2004 Posts: 325 Location: Ticino - CH
|
Posted: Wed Dec 22, 2004 7:41 pm Post subject: |
|
|
And for Xfce4? Is there any program like this one? |
|
Back to top |
|
|
TanNewt Retired Dev
Joined: 26 Mar 2004 Posts: 340 Location: Seattle, WA
|
Posted: Wed Dec 22, 2004 8:26 pm Post subject: |
|
|
I can work xfce support into it. The next version features seperate files to define WMs. XFCE should be able to be supported. I have it installed I'll look into it. |
|
Back to top |
|
|
TanNewt Retired Dev
Joined: 26 Mar 2004 Posts: 340 Location: Seattle, WA
|
Posted: Thu Dec 23, 2004 9:50 am Post subject: |
|
|
There is now Xfce4 support in the CVS version. I will probably release it tomorrow as Denu 2.1 after I add one more feature to it. Please give criticism so I can make the program better. Thanks. |
|
Back to top |
|
|
Dhaki Guru
Joined: 16 Jun 2004 Posts: 325 Location: Ticino - CH
|
Posted: Thu Dec 23, 2004 1:51 pm Post subject: |
|
|
TanNewt wrote: | There is now Xfce4 support in the CVS version. I will probably release it tomorrow as Denu 2.1 after I add one more feature to it. Please give criticism so I can make the program better. Thanks. |
Ok I'll try Denu 2.1 on xfce4 |
|
Back to top |
|
|
TanNewt Retired Dev
Joined: 26 Mar 2004 Posts: 340 Location: Seattle, WA
|
Posted: Thu Dec 23, 2004 7:42 pm Post subject: |
|
|
The xfce4 menu system is sweet without denu. I looked at it to get it working and it is by far the best menu system I've worked with. |
|
Back to top |
|
|
TanNewt Retired Dev
Joined: 26 Mar 2004 Posts: 340 Location: Seattle, WA
|
Posted: Fri Dec 24, 2004 12:09 am Post subject: |
|
|
Okay, 2.1 is out with Xfce4 support and various other enhancements. Link removed, obsolete.
Last edited by TanNewt on Sat Mar 12, 2005 5:33 pm; edited 1 time in total |
|
Back to top |
|
|
Imek Guru
Joined: 20 Jan 2004 Posts: 390 Location: Newcastle, England
|
|
Back to top |
|
|
bladdo Guru
Joined: 19 Jul 2004 Posts: 334 Location: NJ
|
Posted: Fri Dec 24, 2004 3:59 pm Post subject: |
|
|
ok so I get pygtk 2.41 and try and run denu and I get
Code: |
Traceback (most recent call last):
File "/usr/bin/denu", line 938, in ?
treeviewdndex = DenuGUI()
File "/usr/bin/denu", line 855, in __init__
imagefilename = 'denu_' + string.replace(contents[2], '\n', '') + '.png'
IndexError: list index out of range
|
Whats wrong? _________________ Bladdo formerly >Milo<
bladdo.net - scripting and design
Creator of AIM Bot: Tiny Tiny Bot - the bot that learns
distro: gentoo | window manager: pekwm |
|
Back to top |
|
|
TanNewt Retired Dev
Joined: 26 Mar 2004 Posts: 340 Location: Seattle, WA
|
Posted: Fri Dec 24, 2004 9:13 pm Post subject: |
|
|
Chances are one of your specials is old. The old specials used to be parsed by lines. However now they are parsed with <denu-split-l1> first and then <denu-split-l2>. This allows multiline entries and also multiple window manager. All you must do is this. look in /usr/share/denu/specials and ~/.denu/specials and append <denu-split-l1> to the end of each line.
Imek, e16 or e17 support. YOU could add it to denu 2.1 but I'd be happy to. |
|
Back to top |
|
|
bladdo Guru
Joined: 19 Jul 2004 Posts: 334 Location: NJ
|
Posted: Fri Dec 24, 2004 10:09 pm Post subject: |
|
|
TanNewt wrote: | Chances are one of your specials is old. The old specials used to be parsed by lines. However now they are parsed with <denu-split-l1> first and then <denu-split-l2>. This allows multiline entries and also multiple window manager. All you must do is this. look in /usr/share/denu/specials and ~/.denu/specials and append <denu-split-l1> to the end of each line.
Imek, e16 or e17 support. YOU could add it to denu 2.1 but I'd be happy to. |
Eh to hard lol. I just totaly uninstalled it and used the ebuild instead.
--Thanks
EDIT:
ok so now I boot up denu and try and load my menu.xml for openbox and I get.
Code: |
Traceback (most recent call last):
File "/usr/bin/denu", line 689, in interm
self.load_struct(filename, menustore)
File "/usr/bin/denu", line 424, in load_struct
structure = cPickle.load(open(filename,'r'))
cPickle.UnpicklingError: invalid load key, '<'.
|
What does this mean? I code perl I really do not know much about python _________________ Bladdo formerly >Milo<
bladdo.net - scripting and design
Creator of AIM Bot: Tiny Tiny Bot - the bot that learns
distro: gentoo | window manager: pekwm |
|
Back to top |
|
|
TanNewt Retired Dev
Joined: 26 Mar 2004 Posts: 340 Location: Seattle, WA
|
Posted: Fri Dec 24, 2004 10:21 pm Post subject: |
|
|
You can only open denu generated files. ie what you save. Sorry if that wasn't made clear. |
|
Back to top |
|
|
bladdo Guru
Joined: 19 Jul 2004 Posts: 334 Location: NJ
|
Posted: Fri Dec 24, 2004 10:22 pm Post subject: |
|
|
TanNewt wrote: | You can only open denu generated files. ie what you save. Sorry if that wasn't made clear. |
So I cant just open up my openbox config and start editing. :/ o well. _________________ Bladdo formerly >Milo<
bladdo.net - scripting and design
Creator of AIM Bot: Tiny Tiny Bot - the bot that learns
distro: gentoo | window manager: pekwm |
|
Back to top |
|
|
TanNewt Retired Dev
Joined: 26 Mar 2004 Posts: 340 Location: Seattle, WA
|
Posted: Fri Dec 24, 2004 10:31 pm Post subject: |
|
|
Nope, but thats an interesting idea. What I would to to start off is use the AutoFill button and then trim that down to where you like it. |
|
Back to top |
|
|
SpiroTris n00b
Joined: 29 Dec 2004 Posts: 8
|
Posted: Thu Dec 30, 2004 11:46 pm Post subject: |
|
|
Oh nice program, just what I've been looking for! Nice work! |
|
Back to top |
|
|
Duty Apprentice
Joined: 15 Nov 2003 Posts: 253
|
Posted: Fri Dec 31, 2004 9:16 am Post subject: |
|
|
Got this error installing 2.1 from the ebuild:
Code: |
Traceback (most recent call last):
File "/usr/bin/denu", line 938, in ?
treeviewdndex = DenuGUI()
File "/usr/bin/denu", line 848, in __init__
self.specialstore.append(None, ['label', 'Standard', '', self.pixbuf_manager('denu_folder.png'), ''])
File "/usr/bin/denu", line 582, in pixbuf_manager
file = open('/usr/share/pixmaps/' + filename, 'w')
IOError: [Errno 13] Permission denied: '/usr/share/pixmaps/denu_folder.png'
|
The file in question doesn't exist. I copied another one in its place but got the same message for 'denu_all.png'... |
|
Back to top |
|
|
|