No menuenetry in KDE

Bug #568497 reported by kaputtnik
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UniTree
Fix Released
Low
Ralf Hersel

Bug Description

Installing the DEB- Packge will not Create a Menueentry in KDE.

Trying to start unitree in Konsole, the message appears: Command not found.

Trying:"python /usr/share/unitree/unitree.py" the following happens:

Cannot find unitree.cfg file. Applying default settings.
Traceback (most recent call last):
  File "/usr/share/unitree/unitree.py", line 3032, in <module>
    if __name__ == "__main__": main() # start main function
  File "/usr/share/unitree/unitree.py", line 3026, in main
    gui = GUI(n, cfg, cmdarg, utr_file) # create GUI object
  File "/usr/share/unitree/unitree.py", line 709, in __init__
    pixbuf = gtk.gdk.pixbuf_new_from_file('unitree_icon.png') # get icon from png
glib.GError: Failed to open file 'unitree_icon.png': No such file or directory

I am using Kubuntu Hardy with KDE4.3.2
Language: German

Revision history for this message
Ralf Hersel (ralf.hersel) wrote :

The deb file is designed to install UniTree on GNOME (Ubuntu 9.10). I have no clue if there are any special setting (in the deb file) required to install it on KDE. Maybe you know it better than me.

Anyway, from your comment I see that you are starting unitree.py instead of unitree.sh. The traceback shows that UniTree cannot find its files because it does not know where they are. That is exactly the reason why you should start unitree.sh because it changes to the UniTree directory.

Workaround:
1. unzip the unitree folder from the deb file and copy it wherever you want
2. create a menu starter that starts the file unitree.sh

Changed in unitree:
status: New → Incomplete
importance: Undecided → Low
Revision history for this message
kaputtnik (kaputtnik-deactivatedaccount) wrote :

Thanks, starting the file "/usr/share/unitree/unitree.sh" solves the problem whith starting the program.

I will try to find out, what menuesettings in the deb-file are necessary, to create a menueentry in kde.

Maybe its a Problem, with the Menue-name "Zubehör" (don't know this in englisch), wich not exists in kde?

:-)

Revision history for this message
kaputtnik (kaputtnik-deactivatedaccount) wrote :

Found the problem:

The installer creates a file ".desktop" (without name) in "/usr/share/applications".

Renaming this file to "unitree.desktop" creates a menuentry in "Programme -> Dienstprogramme -> Unitree"

Revision history for this message
Ralf Hersel (ralf.hersel) wrote :

Perfect, I will change it and see if this works also with GNOME.

Changed in unitree:
status: Incomplete → Fix Committed
assignee: nobody → Ralf Hersel (ralf.hersel)
Revision history for this message
Ralf Hersel (ralf.hersel) wrote :

This is fixed now in Version 0.82.

Changed in unitree:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.