Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Denu 2.0 - GUI based menu editing.
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3 ... 9, 10, 11  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
TanNewt
Retired Dev
Retired Dev


Joined: 26 Mar 2004
Posts: 340
Location: Seattle, WA

PostPosted: Tue Dec 21, 2004 1:37 am    Post subject: Denu 2.0 - GUI based menu editing. Reply with quote

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


Joined: 22 Aug 2004
Posts: 66

PostPosted: Tue Dec 21, 2004 8:12 pm    Post subject: Reply with quote

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


Joined: 19 Jul 2004
Posts: 334
Location: NJ

PostPosted: Tue Dec 21, 2004 8:30 pm    Post subject: Reply with quote

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


Joined: 26 Mar 2004
Posts: 340
Location: Seattle, WA

PostPosted: Tue Dec 21, 2004 8:45 pm    Post subject: Reply with quote

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


Joined: 19 Jul 2004
Posts: 334
Location: NJ

PostPosted: Tue Dec 21, 2004 9:15 pm    Post subject: Reply with quote

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


Joined: 26 Mar 2004
Posts: 340
Location: Seattle, WA

PostPosted: Tue Dec 21, 2004 9:18 pm    Post subject: Reply with quote

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


Joined: 22 Aug 2004
Posts: 66

PostPosted: Wed Dec 22, 2004 12:30 pm    Post subject: Reply with quote

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


Joined: 07 Nov 2003
Posts: 388

PostPosted: Wed Dec 22, 2004 6:36 pm    Post subject: Reply with quote

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 :twisted:
_________________
If God has made us in his image, we have returned him the favor. - Voltaire
Back to top
View user's profile Send private message
TanNewt
Retired Dev
Retired Dev


Joined: 26 Mar 2004
Posts: 340
Location: Seattle, WA

PostPosted: Wed Dec 22, 2004 7:25 pm    Post subject: Reply with quote

RMX, chmod the /usr/share/pixmaps folder. Lightvhawk0, you got it to work on amd64? HOw do you like it etc.?
Back to top
View user's profile Send private message
lightvhawk0
Guru
Guru


Joined: 07 Nov 2003
Posts: 388

PostPosted: Wed Dec 22, 2004 7:33 pm    Post subject: Reply with quote

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 :P i like it a lot
_________________
If God has made us in his image, we have returned him the favor. - Voltaire
Back to top
View user's profile Send private message
Dhaki
Guru
Guru


Joined: 16 Jun 2004
Posts: 325
Location: Ticino - CH

PostPosted: Wed Dec 22, 2004 7:41 pm    Post subject: Reply with quote

And for Xfce4? Is there any program like this one?
Back to top
View user's profile Send private message
TanNewt
Retired Dev
Retired Dev


Joined: 26 Mar 2004
Posts: 340
Location: Seattle, WA

PostPosted: Wed Dec 22, 2004 8:26 pm    Post subject: Reply with quote

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


Joined: 26 Mar 2004
Posts: 340
Location: Seattle, WA

PostPosted: Thu Dec 23, 2004 9:50 am    Post subject: Reply with quote

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


Joined: 16 Jun 2004
Posts: 325
Location: Ticino - CH

PostPosted: Thu Dec 23, 2004 1:51 pm    Post subject: Reply with quote

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 :wink:
Back to top
View user's profile Send private message
TanNewt
Retired Dev
Retired Dev


Joined: 26 Mar 2004
Posts: 340
Location: Seattle, WA

PostPosted: Thu Dec 23, 2004 7:42 pm    Post subject: Reply with quote

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


Joined: 26 Mar 2004
Posts: 340
Location: Seattle, WA

PostPosted: Fri Dec 24, 2004 12:09 am    Post subject: Reply with quote

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


Joined: 20 Jan 2004
Posts: 390
Location: Newcastle, England

PostPosted: Fri Dec 24, 2004 11:00 am    Post subject: Reply with quote

Are there any plans for Enlightenment menu support? That would be sweet.
_________________
- I
(very old) "Current" desktop | Adopt an unanswered post today!
Back to top
View user's profile Send private message
bladdo
Guru
Guru


Joined: 19 Jul 2004
Posts: 334
Location: NJ

PostPosted: Fri Dec 24, 2004 3:59 pm    Post subject: Reply with quote

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


Joined: 26 Mar 2004
Posts: 340
Location: Seattle, WA

PostPosted: Fri Dec 24, 2004 9:13 pm    Post subject: Reply with quote

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


Joined: 19 Jul 2004
Posts: 334
Location: NJ

PostPosted: Fri Dec 24, 2004 10:09 pm    Post subject: Reply with quote

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


Joined: 26 Mar 2004
Posts: 340
Location: Seattle, WA

PostPosted: Fri Dec 24, 2004 10:21 pm    Post subject: Reply with quote

You can only open denu generated files. ie what you save. Sorry if that wasn't made clear.
Back to top
View user's profile Send private message
bladdo
Guru
Guru


Joined: 19 Jul 2004
Posts: 334
Location: NJ

PostPosted: Fri Dec 24, 2004 10:22 pm    Post subject: Reply with quote

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


Joined: 26 Mar 2004
Posts: 340
Location: Seattle, WA

PostPosted: Fri Dec 24, 2004 10:31 pm    Post subject: Reply with quote

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


Joined: 29 Dec 2004
Posts: 8

PostPosted: Thu Dec 30, 2004 11:46 pm    Post subject: Reply with quote

Oh nice program, just what I've been looking for! Nice work!
Back to top
View user's profile Send private message
Duty
Apprentice
Apprentice


Joined: 15 Nov 2003
Posts: 253

PostPosted: Fri Dec 31, 2004 9:16 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page 1, 2, 3 ... 9, 10, 11  Next
Page 1 of 11

 
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