Re: CrunchBang Panel

Hi anonymous,

And why not just the a gtk monitor icon? [..]

Yes, but if I can find something like that ( 128px or bigger ) :

http://www.ad-comp.be/public/images/monitor.png

~$ whoami
ADcomp

Re: CrunchBang Panel

Well, I realise I'm a complete dummy sad
I put the whole directory in my ~/bin/ then typed "cbpanel" but I was answered "bash : command not found"...

So please, how does one launch a script in a terminal ?

Asus EeePC 901A (16Gb SSD) - Statler Alpha 2-OpenBox

Re: CrunchBang Panel

Yogi wrote:

So please, how does one launch a script in a terminal ?

open terminal , go into cbpanel directory :

./cbpanel

or

python cbpanel
~$ whoami
ADcomp

Re: CrunchBang Panel

Something like this?:

http://www.zwixy.com/images/636764937videodisplay.png

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: CrunchBang Panel

anonymous wrote:

Something like this?

Yes .. Like it. I think we have a winner  big_smile
Thanks

~$ whoami
ADcomp

Re: CrunchBang Panel

And for the menu icon, why not just use the #! logo:

http://www.zwixy.com/images/551024832crunchbang.png

Last edited by anonymous (2009-05-01 15:30:03)

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: CrunchBang Panel

Here is the output from the terminal - thanks for the tip, by the way ;-)

I installed the python items, then ran the command.
Still neither menu nor systray.

EDIT : Ctrl-Alt-Backspace, and the systray is up & running.
EDIT 2 : I have no debian-menu.xml in my /var/lib/openbox/, it is empty.

y@Biniou:~/Outils/cbpanel$ ./cbpanel > text.txt
Traceback (most recent call last):
  File "/home/y/Outils/cbpanel/cb_panel/__init__.py", line 58, in load_plugin
    plugwidget = plugin.Plugin(self.panel, settings)
  File "/home/y/Outils/cbpanel/cb_panel/plugins/menu.py", line 44, in __init__
    self.config.parseFile(XML_MENU)
  File "/home/y/Outils/cbpanel/cb_panel/plugins/menu.py", line 108, in parseFile
    parser.parse(file)
  File "/usr/lib/python2.5/xml/sax/expatreader.py", line 102, in parse
    source = saxutils.prepare_input_source(source)
  File "/usr/lib/python2.5/xml/sax/saxutils.py", line 298, in prepare_input_source
    f = urllib.urlopen(source.getSystemId())
  File "/usr/lib/python2.5/urllib.py", line 82, in urlopen
    return opener.open(url)
  File "/usr/lib/python2.5/urllib.py", line 190, in open
    return getattr(self, name)(url)
  File "/usr/lib/python2.5/urllib.py", line 459, in open_file
    return self.open_local_file(url)
  File "/usr/lib/python2.5/urllib.py", line 473, in open_local_file
    raise IOError(e.errno, e.strerror, e.filename)
IOError: [Errno 2] No such file or directory: '/var/lib/openbox/debian-menu.xml'

(cbpanel:17723): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(cbpanel:17723): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(cbpanel:17723): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

Last edited by Yogi (2009-05-01 18:02:21)

Asus EeePC 901A (16Gb SSD) - Statler Alpha 2-OpenBox

Re: CrunchBang Panel

Yogi wrote:

EDIT : Ctrl-Alt-Backspace, and the systray is up & running.

when you kill panel (lxpanel, bmpanel, ..)  , usually app in systray die with it  .. so you have to launch them again ( like nm-applet , volwheel ..)

Yogi wrote:

EDIT 2 : I have no debian-menu.xml in my /var/lib/openbox/, it is empty.

debian-menu.xml  came with  "menu" package I think .. But I'm working on 2 different menu : one like openbox menu and one like LxPanel menu
So wait until  .. smile   Thank you for your test

Bye

~$ whoami
ADcomp

Re: CrunchBang Panel

Is there a 64bit deb package for this panel?  I didn't find a link.

I view KDE like I view snow. It looks fun and marvelous, it's fun to play in, but after a while I just want someone to take it all away.

Re: CrunchBang Panel

Hi KBang,

It's just for testing .. It's not yet packaged but if you want , I can do it.

~$ whoami
ADcomp

Re: CrunchBang Panel

ADcomp wrote:

Hi KBang,

It's just for testing .. It's not yet packaged but if you want , I can do it.

I would like to test! big_smile

I view KDE like I view snow. It looks fun and marvelous, it's fun to play in, but after a while I just want someone to take it all away.

Re: CrunchBang Panel

Gave it a try today, everything seems to be working well so far. Awesome job, can't wait to see where this goes.

I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.

Re: CrunchBang Panel

kBang wrote:

I would like to test! big_smile

Do it !  tongue

iggykoopa wrote:

Gave it a try today, everything seems to be working well so far. Awesome job, can't wait to see where this goes.

Thanks ..

So .. Here a package ( again for testing purpose ) : http://www.ad-comp.be/public/projets/cb … .1-all.deb

What's new ?
* A very basic Preferences UI
* Re-write most part of panel
* New menu ( parse *.desktop file in /usr/share/applications )
* ...

Not yet :
* you can't configure plugin ( add/remove ; position on panel )
* no position left / right
* ...


http://www.ad-comp.be/public/projets/cbpanel/img/new_menu.png

http://www.ad-comp.be/public/projets/cbpanel/img/settings_3.jpg

http://www.ad-comp.be/public/projets/cbpanel/img/settings_2.jpg

http://www.ad-comp.be/public/projets/cbpanel/img/settings_1.jpg

Bye ..

~$ whoami
ADcomp

Re: CrunchBang Panel

1. Does the "Show Desktop" button only show if you have multiple desktops? I would like the button but I only have one desktop.

2. Wheres the list of tasks/windows? I don't see it.

3. When you open the web search, terminal, calendar, or preferences, the only way to close them is to click the button again. It would be nice if clicking the desktop or panel would close them.

4. The button for the panel menu needs an icon. What about using the "preferences-desktop" icon?

Last edited by anonymous (2009-05-02 18:34:23)

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: CrunchBang Panel

Hi anonymous,

anonymous wrote:

1. Does the "Show Desktop" button only show if you have multiple desktops? I would like the button but I only have one desktop.
2. Wheres the list of tasks/windows? I don't see it.

I think I forgot some dependencies when I packaged panel .. Can you install " libwnck* "

david@acer-desktop:~$ dpkg -l | grep libwnck
ii  libwnck-common                             2.24.1-0ubuntu1                                            Window Navigator Construction Kit - common f
ii  libwnck22                                  2.24.1-0ubuntu1                                            Window Navigator Construction Kit - runtime

3. When you open the web search, terminal, calendar, or preferences, the only way to close them is to click the button again. It would be nice if clicking the desktop or panel would close them.

some buggy stuff ( like focus ) with them .. working on

4. The button for the panel menu needs an icon. What about using the "preferences-desktop" icon?

what button do you mean ?  last one ( popup with settings / about / .. )  ? 

Does "new" menu work for you ?

Bye ..

~$ whoami
ADcomp

Re: CrunchBang Panel

ADcomp wrote:

I think I forgot some dependencies when I packaged panel .. Can you install " libwnck* "

It was already installed.

last one ( popup with settings / about / .. )  ?

Yes that one.

Does "new" menu work for you ?

The #! menu? Yes it works.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: CrunchBang Panel

anonymous wrote:
ADcomp wrote:

I think I forgot some dependencies when I packaged panel .. Can you install " libwnck* "

It was already installed.

Well .. showdesktop plugin and task/windowlist plugin depends on " wnck " .. So I think it's the problem
Can you launch ' cbpanel ' in a terminal and take a look for some error ?

One other test you can do ( if you want to ) :  remove lib wnck.so in cbpanel directory and install python-gnome2-desktop

sudo rm /usr/share/cbpanel/wnck.so
sudo apt-get install python-gnome2-desktop

Python-gnome2-desktop  has his own python-wnck wrapper to libwnck.. maybe some diff with release ?

Thanks for your feedback

~$ whoami
ADcomp

Re: CrunchBang Panel

Ok heres the output:

[kevin]~$ [INFO   ] Loading plugin 'menu' ..
[DEBUG  ] Menu: can't parse wine.desktop
[INFO   ] Loading plugin 'separator' ..
[INFO   ] Loading plugin 'launcher' ..
[INFO   ] Loading plugin 'separator' ..
[INFO   ] Loading plugin 'showdesktop' ..
[WARNING] Unable to load plugin 'showdesktop': /usr/share/cbpanel/wnck.so: wrong
 ELF class: ELFCLASS32
Traceback (most recent call last):
  File "/mnt/data/projets/crunchbang-panel/CBpanel/__init__.py", line 50, in loa
d_plugin
  File "<string>", line 1, in <module>
  File "/mnt/data/projets/crunchbang-panel/CBpanel/plugins/showdesktop.py", line
 6, in <module>
ImportError: /usr/share/cbpanel/wnck.so: wrong ELF class: ELFCLASS32
[INFO   ] Loading plugin 'pager' ..
[WARNING] Unable to load plugin 'pager': /usr/share/cbpanel/wnck.so: wrong ELF c
lass: ELFCLASS32
Traceback (most recent call last):
  File "/mnt/data/projets/crunchbang-panel/CBpanel/__init__.py", line 50, in loa
d_plugin
  File "<string>", line 1, in <module>
  File "/mnt/data/projets/crunchbang-panel/CBpanel/plugins/pager.py", line 6, in
 <module>
ImportError: /usr/share/cbpanel/wnck.so: wrong ELF class: ELFCLASS32
[INFO   ] Loading plugin 'separator' ..
[INFO   ] Loading plugin 'windowlist' ..
[WARNING] Unable to load plugin 'windowlist': /usr/share/cbpanel/wnck.so: wrong 
ELF class: ELFCLASS32
Traceback (most recent call last):
  File "/mnt/data/projets/crunchbang-panel/CBpanel/__init__.py", line 50, in loa
d_plugin
  File "<string>", line 1, in <module>
  File "/mnt/data/projets/crunchbang-panel/CBpanel/plugins/windowlist.py", line 
6, in <module>
ImportError: /usr/share/cbpanel/wnck.so: wrong ELF class: ELFCLASS32
[INFO   ] Loading plugin 'separator' ..
[INFO   ] Loading plugin 'searchbox' ..
[DEBUG  ] SearchBox: Browser set to 'firefox %s'
[INFO   ] Loading plugin 'terminal' ..
[INFO   ] Loading plugin 'separator' ..
[INFO   ] Loading plugin 'systray' ..
[INFO   ] Loading plugin 'separator' ..
[INFO   ] Loading plugin 'clock' ..
[DEBUG  ] Clock: Clock not displaying seconds: updated scheduled once every minu
te.
[INFO   ] Loading plugin 'separator' ..
[INFO   ] Loading plugin 'settings' ..

Last edited by anonymous (2009-05-02 20:20:50)

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: CrunchBang Panel

anonymous wrote:

Ok heres the output:

[WARNING] Unable to load plugin 'windowlist': /usr/share/cbpanel/wnck.so: wrong 
ELF class: ELFCLASS32

Yes .. my lib wnck.so doesn't work on your system.  hmm

sudo rm /usr/share/cbpanel/wnck.so
sudo apt-get install python-gnome2-desktop

and It shoul'd work.  big_smile

Bye

~$ whoami
ADcomp

Re: CrunchBang Panel

Nooo I dont like dependencies sad

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: CrunchBang Panel

@ anonymous : I know that is crappy .. This is why I pack my own wnck.so
Are you on 64bit ? 

If you have time to test , you really only need this file '/usr/lib/python-support/python-gnome2-desktop/python2.5/gtk-2.0/wnck.so' from python-gnome2-desktop
So you can install python-gnome2-desktop ( and dependencies ) ,

sudo cp /usr/lib/python-support/python-gnome2-desktop/python2.5/gtk-2.0/wnck.so /usr/share/cbpanel/wnck.so

and remove python-gnome2-desktop ( and dependencies )

I know that really sucks ... I thinking about re-write  these plugins with python-xlib ( but wnck is more simple )

~$ whoami
ADcomp

Re: CrunchBang Panel

I'm not sure if it is the same thing that anonymous was asking about.  When I open firefox, file manager,  preferences, or cli from the cbpanel I get warning in the cli window that I started cbpanel from.  Here is the warnings I am getting.

(cbpanel:6039): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

Also when I use show desktop it removes conky as well.  It will come back most of the time.

Cbpanel looks great and has been working well.  Great job ADcomp, well done.

Thanks Kelean.

Re: CrunchBang Panel

kelean wrote:

I'm not sure if it is the same thing that anonymous was asking about.  When I open firefox, file manager,  preferences, or cli from the cbpanel I get warning in the cli window that I started cbpanel from.  Here is the warnings I am getting.

(cbpanel:6039): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

This is a bug in libwnck, it prints warnings when it finds an atom it doesn't know about, even if it doesn't start with _NET.   ( source )

kelean wrote:

Also when I use show desktop it removes conky as well.  It will come back most of the time.

Oupss ..  lol  so showdesktop need more testing ( or maybe some conky tweak ? )

kelean wrote:

Cbpanel looks great and has been working well.  Great job ADcomp, well done.

Ok, it's Cool big_smile  Thanks for your test / feedback

~$ whoami
ADcomp

Re: CrunchBang Panel

ADcomp wrote:

@ anonymous : I know that is crappy .. This is why I pack my own wnck.so
Are you on 64bit ? 

If you have time to test , you really only need this file '/usr/lib/python-support/python-gnome2-desktop/python2.5/gtk-2.0/wnck.so' from python-gnome2-desktop
So you can install python-gnome2-desktop ( and dependencies ) ,

sudo cp /usr/lib/python-support/python-gnome2-desktop/python2.5/gtk-2.0/wnck.so /usr/share/cbpanel/wnck.so

and remove python-gnome2-desktop ( and dependencies )

I know that really sucks ... I thinking about re-write  these plugins with python-xlib ( but wnck is more simple )

Ok I managed to install it without the dependencies, copy over the necessary file, and remove it. Now cbpanel has the desktop icon and task list. Thanks.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: CrunchBang Panel

anonymous wrote:

Ok I managed to install it without the dependencies, copy over the necessary file, and remove it. Now cbpanel has the desktop icon and task list. Thanks.

Ok .. this is cool  big_smile  .. Thanks for testing and your feedback

~$ whoami
ADcomp