You are not logged in.

#1 2012-04-01 13:53:13

Zapman
Member
Registered: 2012-04-01
Posts: 35

Installing adeskbar (git)

Hi iam new here wink
I tried to install adeskbar from git by resolving the depedencies found in the README. after that i run sudo install.sh and run adeskbar but i get the following output:

Traceback (most recent call last):
  File "/usr/bin/adeskbar", line 64, in <module>
    import adesk.bar
  File "/usr/share/adeskbar/adesk/bar.py", line 255
    print 'CONFIG ---------------------------------------------'
                                                               ^
SyntaxError: invalid syntax

Could someone please help?

Thank you

Offline

#2 2012-04-01 15:12:30

guelfi
Member
From: /home/guelfi
Registered: 2011-07-01
Posts: 111

Re: Installing adeskbar (git)

First of all, welcome to Arch Linux.

Adeskbar is using python2 syntax, but Arch uses python3 as default. Install the AUR package, it fixes this issue.

(If you don't know how to install an AUR package, see the wiki page.)

Last edited by guelfi (2012-04-01 15:13:30)

Offline

#3 2012-04-01 16:37:05

Zapman
Member
Registered: 2012-04-01
Posts: 35

Re: Installing adeskbar (git)

Hey thanks a lot for replying. Although i can see adeskbar running i cant do anything on it. preferences activates no menu and i get the following in terminal

** (main.py:7778): WARNING **: Trying to register gtype 
'WnckWindowState' as enum when in fact it is of type 'GFlags'

** (main.py:7778): WARNING **: Trying to register gtype 
'WnckWindowActions' as enum when in fact it is of type 'GFlags'

** (main.py:7778): WARNING **: Trying to register gtype 
'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags'

(main.py:7778): Wnck-WARNING **: Unhandled action type 
_OB_WM_ACTION_UNDECORATE

(main.py:7778): Wnck-WARNING **: Unhandled action type 
_OB_WM_ACTION_UNDECORATE
Traceback (most recent call last):
  File "/usr/share/adeskbar/adesk/bar.py", line 859, in load_plugin
    widget = plugin.Plugin(self.bar, settings)
  File "/usr/share/adeskbar/plugins/menu.py", line 52, in __init__
    self.menu = Menu_UI(self, bar)
  File "/usr/share/adeskbar/plugins/menu.py", line 83, in __init__
    self.restart()
  File "/usr/share/adeskbar/plugins/menu.py", line 112, in restart
    self.create_menu()
  File "/usr/share/adeskbar/plugins/menu.py", line 130, in create_menu
    xdgmenu = Core.XdgMenu()
  File "/usr/share/adeskbar/adesk/core.py", line 216, in __init__
    xdgmenu = xdg.Menu.parse('/etc/xdg/menus/%s.menu' % select_menu)
  File "/usr/lib/python2.7/site-packages/xdg/Menu.py", line 514, in 
parse
    doc = xml.dom.minidom.parse(filename)
  File "/usr/lib/python2.7/xml/dom/minidom.py", line 1914, in parse
    return expatbuilder.parse(file)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 922, in parse
    fp = open(file, 'rb')
IOError: [Errno 2] No such file or directory: 
'/etc/xdg/menus/applications.menu'
Traceback (most recent call last):
  File "/usr/share/adeskbar/adesk/bar.py", line 735, in edit_config
    self.bar_conf = barconf.Conf(self)
  File "/usr/share/adeskbar/adesk/barconf.py", line 108, in __init__
    self.ui_Main()
  File "/usr/share/adeskbar/adesk/barconf.py", line 184, in ui_Main
    self.ui_Launcher()
  File "/usr/share/adeskbar/adesk/barconf.py", line 456, in ui_Launcher
    self.app_menu = ui.Menu(self.new_item_menu)
  File "/usr/share/adeskbar/adesk/ui.py", line 591, in __init__
    xdgmenu = Core.XdgMenu()
  File "/usr/share/adeskbar/adesk/core.py", line 216, in __init__
    xdgmenu = xdg.Menu.parse('/etc/xdg/menus/%s.menu' % select_menu)
  File "/usr/lib/python2.7/site-packages/xdg/Menu.py", line 514, in 
parse
    doc = xml.dom.minidom.parse(filename)
  File "/usr/lib/python2.7/xml/dom/minidom.py", line 1914, in parse
    return expatbuilder.parse(file)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 922, in parse
    fp = open(file, 'rb')
IOError: [Errno 2] No such file or directory: 
'/etc/xdg/menus/applications.menu'
/usr/share/adeskbar/adesk/bar.py:749: Warning: g_object_set_qdata: 
assertion `G_IS_OBJECT (object)' failed
  gtk.main()
^CTraceback (most recent call last):
  File "main.py", line 68, in <module>
    BAR_MGR.run()
  File "/usr/share/adeskbar/adesk/bar.py", line 753, in run
    self.doquit()
  File "/usr/share/adeskbar/adesk/bar.py", line 745, in doquit
    gtk.main_quit()
RuntimeError: called outside of a mainloop

can i do anything to fix it?

Offline

#4 2013-04-23 09:51:04

bobi
Member
Registered: 2013-04-23
Posts: 5

Re: Installing adeskbar (git)

http://xkcd.com/979/

Who were you Zapman?

What did you see??

PS: Well, it’s a quite obvious up, right, but if anybody has the solution to Zapman’s problem (which I have to, running adeskbar under Openbox on a usual gnomised arch), it would be great!

Offline

#5 2013-04-26 18:04:39

pauper
Member
Registered: 2012-06-25
Posts: 28

Re: Installing adeskbar (git)

The same thing happened to me after a recent update. Inside /etc/xdg/menus/ there is a file called gnome-applications.menu so as a temporary fix I tried:

sudo ln -s /etc/xdg/menus/gnome-applications.menu /etc/xdg/menus/applications.menu

I can now access the adeskbar preferences menu.

Offline

Board footer

Powered by FluxBB