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 Previous  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: 339
Location: Seattle, WA

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

Denu needs write permission to /usr/share/pixmaps not any specific file. chmod 666 /usr/share/pixmaps or you should be able to give your user permissions to the folder. Denu needs to be able to write to /usr/share/pixmaps
Back to top
View user's profile Send private message
monotux
l33t
l33t


Joined: 09 Sep 2003
Posts: 751
Location: Stockholm, Sweden

PostPosted: Fri Dec 31, 2004 1:27 pm    Post subject: Reply with quote

I can't even make it work as root.
Denu 2.1 seems pretty broken :(
_________________
Computer science is no more about computers than astronomy is about telescopes.
Back to top
View user's profile Send private message
TanNewt
Retired Dev
Retired Dev


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

PostPosted: Fri Dec 31, 2004 7:17 pm    Post subject: Reply with quote

It should not be run as root. Try it as a user and tell me the error(s) you recieve.
Back to top
View user's profile Send private message
monotux
l33t
l33t


Joined: 09 Sep 2003
Posts: 751
Location: Stockholm, Sweden

PostPosted: Sat Jan 01, 2005 12:18 pm    Post subject: Reply with quote

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 586, in pixbuf_manager
    self.pixbuf_index[filename] = gtk.gdk.pixbuf_new_from_file_at_size('/usr/share/pixmaps/' + filename, 16, 16)
gobject.GError: Unrecognized image file format

And yes, /usr/share/pixmaps has a "chmod 666" laid upon it :(
_________________
Computer science is no more about computers than astronomy is about telescopes.
Back to top
View user's profile Send private message
scoobydu
Veteran
Veteran


Joined: 16 Feb 2003
Posts: 1076
Location: 'Mind the Gap'

PostPosted: Sat Jan 01, 2005 12:45 pm    Post subject: Reply with quote

Does an ebuild exist for v2.x or the cvs build?

v2.1 says its installing v0.6?

Looks good though guys :) waiting to give denu another try ...
_________________
Tyan Tiger K8W, 2xOpteron 240,Powerbook5,6 15" 1.5g, Macbook Black 2g, Mac Mini 1g, Ipod P60g.
| Linux - From a windows user perspective|
Back to top
View user's profile Send private message
JeroenV
Guru
Guru


Joined: 16 Jul 2002
Posts: 447
Location: Amsterdam / Hamburg

PostPosted: Sat Jan 01, 2005 5:28 pm    Post subject: Reply with quote

I have to agree with Duty:
the denu_* pixmap files simply don't seem to exist, i.e. the problem is not access permissions but non-existing files. AFAIC the bz2 doesn't contain any pixmaps. It might be possible to include them?
_________________
Cheers 8)
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you!
Back to top
View user's profile Send private message
TanNewt
Retired Dev
Retired Dev


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

PostPosted: Sat Jan 01, 2005 9:46 pm    Post subject: Reply with quote

furiorc,
Thats a strange error which I have not seen before. I'll look into it. Did you create one of your own?

scoobydu,
There are ebuilds you can download from sourceforge. Link obsolete, find ebuilds here copy this into your local portage directory under x11-misc.

JeroenV,
The program fetches the image from the web so only the required ones are downloaded. The permissions are need so denu can write the image to /.usr/share/pixmaps

If any of you know python I'd appreciate critiques on my code. ;-)
Thanks.


Last edited by TanNewt on Sat Mar 12, 2005 5:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
scoobydu
Veteran
Veteran


Joined: 16 Feb 2003
Posts: 1076
Location: 'Mind the Gap'

PostPosted: Sat Jan 01, 2005 9:57 pm    Post subject: Reply with quote

TanNewt wrote:
scoobydu,
There are ebuilds you can download from sourceforge. http://sourceforge.net/project/showfiles.php?group_id=117449&package_id=128297&release_id=292204 copy this into your local portage directory under x11-misc.


Ok, thanks.

Just wondered why usr/share/pixmaps is being used to write to?

Shouldn't any menu pixmaps be put in the users home directory, under denu or something?
_________________
Tyan Tiger K8W, 2xOpteron 240,Powerbook5,6 15" 1.5g, Macbook Black 2g, Mac Mini 1g, Ipod P60g.
| Linux - From a windows user perspective|
Back to top
View user's profile Send private message
monotux
l33t
l33t


Joined: 09 Sep 2003
Posts: 751
Location: Stockholm, Sweden

PostPosted: Sat Jan 01, 2005 10:18 pm    Post subject: Reply with quote

TanNewt wrote:
furiorc,
Thats a strange error which I have not seen before. I'll look into it. Did you create one of your own?


If I did create that error myself? :P
I tried creating files any everything, but I couldn't figure any way to make it work (and if I do, I'll post it here).
I'm running Arch Linux on my workstation, but that's probably not the reason why it doesn't work
_________________
Computer science is no more about computers than astronomy is about telescopes.
Back to top
View user's profile Send private message
TanNewt
Retired Dev
Retired Dev


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

PostPosted: Sat Jan 01, 2005 10:20 pm    Post subject: Reply with quote

Thats something that could be done. However if multiple users use the same program that would lead to multipe downloading of a file already on the system. If you have any suggestions I'd love to hear them because these last few posts show that either I need to check the permissions of /usr/share/pixmaps or some other solution.
Back to top
View user's profile Send private message
monotux
l33t
l33t


Joined: 09 Sep 2003
Posts: 751
Location: Stockholm, Sweden

PostPosted: Sat Jan 01, 2005 11:22 pm    Post subject: Reply with quote

I think it works now :D
I removed the denu directory in /usr/share/pixmaps, and started denu as root (which downloaded everything, I think).
I'm just gonna figure out how you actually OPEN a file :)
_________________
Computer science is no more about computers than astronomy is about telescopes.
Back to top
View user's profile Send private message
TanNewt
Retired Dev
Retired Dev


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

PostPosted: Sat Jan 01, 2005 11:32 pm    Post subject: Reply with quote

You cannot open your window manager file only a denu generated one. I also suggesting backing your current menu up before you generate a new one. Again dont run it as root unless you normally use your desktop as root. Thats how it determines where to put the menu configs. You are not the first person to mention importing menu files into denu. I'll look into actually getting it to work. I'm also looking into starting documentation.

To create a structure I reccommend hitting update, then sysupdate and lastly autogen and then paring that menu down to what you like.
Back to top
View user's profile Send private message
JeroenV
Guru
Guru


Joined: 16 Jul 2002
Posts: 447
Location: Amsterdam / Hamburg

PostPosted: Sun Jan 02, 2005 12:17 am    Post subject: Reply with quote

:oops: I spoke too soon, i.e. in ignorance mode :wink:
(I didn't look good enough to know about auto-download)

While I agree with your motivation to require user write access to a system dir, I don't really like this, in fact in a more professional environment it's out of the question to give a normal user write acces to shared system dirs. I can only think of 3 possible solutions to this problem:


  1. require root to update the pixmap files (i.e. run as root for initialisation purposes)
  2. include the full set of pixmaps in the distro (shouldn't be too much?)
  3. make a seperate update script that does in fact the same as running denu as root, but doesn't bring up a gui and doesn't create or need a .denu directory.


I would prefer (3), it may eventually come to it that there would be a portage FEATURES flag that runs this script after every emerge. A prerequisite of course for this would be that denu would be made the de-facto gentoo standard of dealing with menu-generation.
_________________
Cheers 8)
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you!
Back to top
View user's profile Send private message
TanNewt
Retired Dev
Retired Dev


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

PostPosted: Sun Jan 02, 2005 12:33 am    Post subject: Reply with quote

JeroenV I agree with you. I think we should continue discussing it and I will make the needed changes for the next release. I'm not sure what you mean by number 3. However the easiest solution would be to change the directory that the picmaps are stored in. One possible directory could be in /usr/share/denu or in the users home .denu directory.

As far as getting denu as the de-facto menu-generation program it would be awesome. However, the first step would be getting denu into portage. I've posted a bug but there hasn't been much interest as far as I can tell.

Thanks for your input.

Edit:
I forgot. I would rule out number 2 because the system is designed to rely on information taken off of the web to define what programs it supports for the menu. That way program support can increase without needing to release a new version of denu. I did this because I found the reliance of data within fluxbox-generate_menu.

Also, how would you go about supporting other non-portage based distros? Look for programs within the directories defined in the $PATH variable like menu maker?
Back to top
View user's profile Send private message
scoobydu
Veteran
Veteran


Joined: 16 Feb 2003
Posts: 1076
Location: 'Mind the Gap'

PostPosted: Sun Jan 02, 2005 8:22 pm    Post subject: Reply with quote

TanNewt wrote:
or in the users home .denu directory.


That is definately a good option, as each user may want a separate menu file.

I can get denu 2.1 to run, but only as root. The user still gives me permission errors.

IOError: [Errno 13] Permission denied: '/usr/share/pixmaps/denu_folder.png and the file does exist and is 666.
_________________
Tyan Tiger K8W, 2xOpteron 240,Powerbook5,6 15" 1.5g, Macbook Black 2g, Mac Mini 1g, Ipod P60g.
| Linux - From a windows user perspective|
Back to top
View user's profile Send private message
TanNewt
Retired Dev
Retired Dev


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

PostPosted: Sun Jan 02, 2005 8:32 pm    Post subject: Reply with quote

scoobydu wrote:
That is definately a good option, as each user may want a separate menu file.

This is already standard, its a matter where the icons are stored.
scoobydu wrote:

I can get denu 2.1 to run, but only as root. The user still gives me permission errors.
IOError: [Errno 13] Permission denied: '/usr/share/pixmaps/denu_folder.png and the file does exist and is 666.

The solution to this is as above. Chmod the folder 666. That would be /usr/share/pixmaps. However in the next release the directory will likely be changed either to a directory in /usr/share/denu or in the users home/.denu folder.

Has anyone tried this with a recent KDE? Could you report which window manager you are using so I know which are working? The only one I'm unsure about is KDE. I'm asking this is because denu may be featured in an upcoming GWN. :-D
Back to top
View user's profile Send private message
scoobydu
Veteran
Veteran


Joined: 16 Feb 2003
Posts: 1076
Location: 'Mind the Gap'

PostPosted: Sun Jan 02, 2005 8:38 pm    Post subject: Reply with quote

TanNewt wrote:
This is already standard, its a matter where the icons are stored.


I meant the pixmaps should be stored with the denu setup and menu file for that user.

The folder was Chmod 666 and makes no differance for me.

edit: Waimea latest cvs.
_________________
Tyan Tiger K8W, 2xOpteron 240,Powerbook5,6 15" 1.5g, Macbook Black 2g, Mac Mini 1g, Ipod P60g.
| Linux - From a windows user perspective|
Back to top
View user's profile Send private message
TanNewt
Retired Dev
Retired Dev


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

PostPosted: Sun Jan 02, 2005 9:08 pm    Post subject: Reply with quote

Thats odd. I guess I'll put the icons in the home/.denu folder since thats where you think it should be. I dont know why you are stil getting that error. Hmm, I'll think about it.
Back to top
View user's profile Send private message
scoobydu
Veteran
Veteran


Joined: 16 Feb 2003
Posts: 1076
Location: 'Mind the Gap'

PostPosted: Sun Jan 02, 2005 9:17 pm    Post subject: Reply with quote

TanNewt wrote:
Thats odd. I guess I'll put the icons in the home/.denu folder since thats where you think it should be. I dont know why you are stil getting that error. Hmm, I'll think about it.


Definately wierd, but true :roll:

Out of interest, is it possible to replace the icons in the user directory, so each user can say have a differant firefox icon if they choose?
_________________
Tyan Tiger K8W, 2xOpteron 240,Powerbook5,6 15" 1.5g, Macbook Black 2g, Mac Mini 1g, Ipod P60g.
| Linux - From a windows user perspective|
Back to top
View user's profile Send private message
TanNewt
Retired Dev
Retired Dev


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

PostPosted: Sun Jan 02, 2005 9:19 pm    Post subject: Reply with quote

You can replace its once its downloaded, the program wont know the difference as long as the filenames are the same. Adding icons through the gui is something on the todo list inside my head.
Back to top
View user's profile Send private message
racoontje
Veteran
Veteran


Joined: 19 Jul 2004
Posts: 1290

PostPosted: Sun Jan 02, 2005 10:00 pm    Post subject: Reply with quote

Who got it to work on ~x86/~amd64.
Back to top
View user's profile Send private message
TanNewt
Retired Dev
Retired Dev


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

PostPosted: Sun Jan 02, 2005 10:18 pm    Post subject: Reply with quote

Are you asking if anyone got it to work on amd64? What are you asking?

I just released version 2.1.1. It fixes one bug I found and moves the pixmap directory into the /.denu folder in the users home directory.


Last edited by TanNewt on Sat Mar 12, 2005 5:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
scoobydu
Veteran
Veteran


Joined: 16 Feb 2003
Posts: 1076
Location: 'Mind the Gap'

PostPosted: Sun Jan 02, 2005 10:31 pm    Post subject: Reply with quote

Ok, thats better imho. At least then if you remove denu, you know you just have to remove .denu to get rid of the data files, rather than having leftover files in /usr/share/pixmaps.

Anyway, some feedback.

1) Now execs as user ....
2) Quit and rerun, causes an error, saying the pixmaps directory already exists in .denu (need a check in here I guess)
3) Add the menu items with autofill gives me this error ... when I hit generate for waimea.

Quote:

Traceback (most recent call last):
File "/usr/bin/denu", line 320, in menugen_prep
self.menugen(tree, wm)
File "/usr/bin/denu", line 353, in menugen
menu = denu.submenu(structure,menu,wm,menu_images) #generate menu guts
File "/usr/bin/denu", line 222, in submenu
file = open('/usr/share/pixmaps/' + media_images[prgm[1]][0], 'w')
IOError: [Errno 13] Permission denied: '/usr/share/pixmaps/Editor.png'

_________________
Tyan Tiger K8W, 2xOpteron 240,Powerbook5,6 15" 1.5g, Macbook Black 2g, Mac Mini 1g, Ipod P60g.
| Linux - From a windows user perspective|
Back to top
View user's profile Send private message
TanNewt
Retired Dev
Retired Dev


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

PostPosted: Sun Jan 02, 2005 10:32 pm    Post subject: Reply with quote

Okay if you just grabbed 2.1.1 and get an error reinstall it after deleting the file denu-2.1.1.tar.bz2 in distfiles. I forgot a period in the code which resulted in an error. :roll: Shame on me should have checked. Oh well it should be fixed now.

ARGH!!! okay, thanks scoobydu I'll fix that right now.
Back to top
View user's profile Send private message
scoobydu
Veteran
Veteran


Joined: 16 Feb 2003
Posts: 1076
Location: 'Mind the Gap'

PostPosted: Sun Jan 02, 2005 10:38 pm    Post subject: Reply with quote

Above same for new 2.1.1 ;)

Oh any chance of a "~amd64" in your ebuild too?

Yes shame on you :lol:
_________________
Tyan Tiger K8W, 2xOpteron 240,Powerbook5,6 15" 1.5g, Macbook Black 2g, Mac Mini 1g, Ipod P60g.
| Linux - From a windows user perspective|
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 Previous  1, 2, 3, ... 9, 10, 11  Next
Page 2 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