Main index > About dead desklets > modubar

By syfou (Core Developer & Desklet Author), on Wed Apr 6 16:22:35 2005: modubar.

Post here your issues with modubar, by DrWoland.

By syfou (Core Developer & Desklet Author), on Wed Apr 6 16:28:13 2005, last edited on Wed Apr 6 18:10:32 2005.

From modubar 0.0.1, geoSlack signaled me a small discrepancy: the caption of the second icon (icon #1) is displayed on launch. This is due to a typo in the code. Line 220 of modubar.py reads:

Code:


self._active=1


When it should be:

Code:


self._active=-1


As in original yab.

By geoSlack (User), on Wed Apr 6 16:33:47 2005.

yes that did it :D

cheers!
-geoSlack

By Neo41 (User), on Sat Apr 16 11:15:40 2005: How to display title above the icons?.

Hi,

Is it possible to display title above the icon? I mean when the mouse is over the icon's firefox, for example, the title (Firefox) appears below the icon.

Thanks

By syfou (Core Developer & Desklet Author), on Sat Apr 16 12:46:10 2005.

There is a caption_above option in the configuration file config.txt. Setting it to True will make the caption appear above the bar instead of below.

By paulwhalley (User), on Wed Apr 27 17:57:26 2005.

Modubar is great!

Only one small annoyance...whenever it starts up, the caption for Firefox is displayed. The caption goes away when I mouse over one of the other icons. I have tried re-installing both modubar and adesklets but no improvement.

Any ideas?

By syfou (Core Developer & Desklet Author), on Wed Apr 27 18:02:38 2005.

Just read above... Second message. Regards,

[EDIT]
By the way: is this the Paul Whalley author of QuasiFractal Music, or is this just a coincidence? ;-)

By seph (User), on Mon May 9 16:01:03 2005.

Is there a way to make the clock 12 hour as opposed to 24 hour? Also, what are examples of other modules to use?

By paulwhalley (User), on Mon May 9 16:20:03 2005.

Quote:


By the way: is this the Paul Whalley author of QuasiFractal Music, or is this just a coincidence?


Yes, I have to take the blame for QFC.

By syfou (Core Developer & Desklet Author), on Mon May 9 16:57:38 2005.

paulwhalley wrote:


Yes, I have to take the blame for QFC.


Cool. :-) I remember playing with QuasiFractal Composer back in 1998-1999....It was around version 1.6 then. I liked the program, but I completely lacked the musical knowledge to do anything useful with it... :oops:

By syfou (Core Developer & Desklet Author), on Mon May 9 19:50:54 2005.

seph wrote:

Is there a way to make the clock 12 hour as opposed to 24 hour?

Yes: just modify the formatting string in the call to strftime at the end of modubar.py. I guess you want something like this:

Code:


def _get_current_time(self):
        return time.strftime('%I:%M %P', time.localtime(time.time()))


But just look at the manual page of strftime for the details. It is good to know that module width is hardcoded in the code to 86 pixels... You can either change this yourself, or lower the font size in the clock if the display string get too wide.

seph wrote:

Also, what are examples of other modules to use?


I am not sure I undertand your question...

In the README from modubar 0.0.1, Mike Panchenko aka. DrWoland wrote:


As of 0.0.1, the only module encorporated is a digital clock.

Yours,

By seph (User), on Mon May 9 21:12:55 2005.

Thanks! that worked perfectly for the time. For other modules, i was referring to maybe a system tray or something that could be added, but i see that only the clock is encorporated as of now.

thanks again

By midas (User), on Tue May 17 13:34:18 2005: getting rid of the bar "frame".

Is there anyway to get rid of the frame around the bar-thingy?
I have tried fiddling with:
* 'bar_background_1': ''
* 'bar_background_2':
* 'bar_foreground': ''
* 'bar_opacity_1':
* 'bar_opacity_2':

No cigar, though.
Am I stupidly missing something here?
Anyone done this already?
I'll read the documentation again....

Regards.

By syfou (Core Developer & Desklet Author), on Tue May 17 13:55:54 2005.

midas wrote:


Is there anyway to get rid of the frame around the bar-thingy?

What you precisely tried is unclear to me, but you seemed on the right track.

In the configuration file of yab on which modubar is based, I wrote:


Many parameters can be set to None, zero or similar values, resulting in a more frugal, less dynamic desklet

Any combination is possible (no frame at all, just a contour line, just a filled rectangle, etc.). For instance, to completely get rid of the frame (border and content), someone would use:

Code:


[...]
   'bar_background_1': None,
   'bar_foreground': None,
[...]


One can have a peak at the background_grab routine of modubar.py to get all the details: Python is easy to grasp, even for non-coders. Regards,

By midas (User), on Tue May 17 15:27:09 2005.

syfou wrote:


Code:


[...]
   'bar_background_1': None,
   'bar_foreground': None,
[...]




Ahem...thanks a bunch. Got the ':s wrong in the configfile. Duh!
Working ok now! :)

Regards.

By bracket (User), on Fri Jul 29 02:38:14 2005: annoying.

Modubar is great, though it's a bit cpu consuming(or maybe it's the adesklet itself, i don't know).. anyway the annoying feature in modubar is the falling back to the default config when it's not quitted properly. so when ever you want to shutdown X you have to first quit modubar and
then shutdown X. And is there away to make modubar remember it's place on the desktop?

By ZeroDivide (Desklet Author), on Fri Jul 29 10:24:38 2005.

It sounds like you need to read the faq for how to properly start your desklets.

http://adesklets.sourceforge.net/doc/en/Frequently-asked-questions.html
Look under A.2.4

By bracket (User), on Mon Aug 1 00:13:44 2005.

Yep, that was it. As usual, I posted way too hasty.. I got it working properly 30min after that post.. =) I even patched it with the patch syfou wrote for yab conserning the icon scaling when approaching the center vertically. :)

By kaiser (User), on Sat Sep 3 00:17:21 2005.

Modubar works great until I try to click on something, then it crashes with this error:

Code:

Traceback (most recent call last):
  File "./modubar.py", line 749, in ?
    Events(dirname(__file__)).pause()
  File "./modubar.py", line 470, in pause
    (time.time()-time_initial)),.01))
  File "/usr/lib64/python2.3/site-packages/adesklets/events_handler.py", line 214, in _fire_event
    [x for x in
  File "./modubar.py", line 415, in button_press
    adesklets.apply_filter(self.config['click_effect'])
  File "/usr/lib64/python2.3/site-packages/adesklets/commands.py", line 506, in apply_filter
    return comm.out()
  File "/usr/lib64/python2.3/site-packages/adesklets/commands_handler.py", line 93, in out
    output=self.__comm.out(.01)
  File "/usr/lib64/python2.3/site-packages/adesklets/communicator.py", line 91, in out
    raise ADESKLETSError(1)
adesklets.error_handler.ADESKLETSError: adesklets process exited - 



Any ideas?

By Vito_Corleone (User), on Mon Oct 24 00:22:55 2005.

I'm having a problem with modubar using the config file. It was working fine, but now it seems like it just uses the defaults, none of the changes i save are working. I tried starting completely from the defaults, but that didn't work either.

Any ideas?

By syfou (Core Developer & Desklet Author), on Mon Oct 24 02:34:36 2005.

Vito_Corleone wrote:

Any ideas?

Your description is very generic , making it hard to help you properly. Hardware failures apart, you will agree that working software does not start acting weird out of thin air. ;-) Help me a bit here: did you upgrade adesklets recently, did you change your window manager, or modified your X11 session sequence, etc? Try to remember significant changes in your system since the last time modubar worked for you.

By robbe (User), on Mon Oct 24 10:49:07 2005.

Problem with more than 5 Icons o_0
with this config

Code:

 'icons': [('konsole.png', '', 'xfterm4'),
           ('opera.png', '', 'firefox'),
           ('thunderbird.png', '', 'mozilla-thunderbird'),
           ('audacity.png', '', 'xmms'),
           ('xine.png', 'XMMS', 'vlc')],

modubar works just fine but if i add another one like

Code:

 'icons': [('konsole.png', '', 'xfterm4'),
           ('opera.png', '', 'firefox'),
           ('thunderbird.png', '', 'mozilla-thunderbird'),
           ('audacity.png', '', 'xmms'),
           ('xine.png', '', 'vlc')
           ('kmix.png', '', 'xfce4-mixer')],

It refuses to start and my config looks then like this :

Code:

'icons': [('konsole.png', '', 'xfterm4'),
           ('opera.png', '', 'firefox'),
           ('thunderbird.png', '', 'mozilla-thunderbird'),
           ('audacity.png', '', 'xmms'),
           []],


kernel 2.6.13
adesklets 0.4.12
xfce4 4.2.2
debian Unstable
any help is welcome
greets robert

By Keloran (User), on Tue Nov 15 01:11:40 2005.

have you noticed that the config goes

[(icon),(icon)]
not [(icon),(icon)[]]

if you do

Code:


'icons': [('konsole.png', '', 'xfterm4'),
           ('opera.png', '', 'firefox'),
           ('thunderbird.png', '', 'mozilla-thunderbird'),
           ('audacity.png', '', 'xmms'),
           ('xine.png', '', 'vlc'),
           ('kmix.png', '', 'xfce4-mixer')],



it should be fine

anyway on with my problem, how can i get modubar to be above all other apps, so i can have it hovering "ontop" in Gnome/Nautilus

By syfou (Core Developer & Desklet Author), on Tue Nov 15 02:19:42 2005.

Keloran: here, and there. By the way, thanks for the previous answer to robbe -- I missed the typo. Yours,

By Kloppster (User), on Mon Jan 16 15:24:07 2006.

Is it possible to run multiple modubars? I have a dual monitor setup and I would like to have an instance on each desktop, currently it is only displaying on the one. When I try and start a second instance nothing happens.

By syfou (Core Developer & Desklet Author), on Wed Jan 18 13:13:52 2006.

Kloppster wrote:

Is it possible to run multiple modubars? I have a dual monitor setup and I would like to have an instance on each desktop, currently it is only displaying on the one. When I try and start a second instance nothing happens.

Yes, it is; I myself use a multi-monitor setup, and I just tested it successfully (both one modubar instance per screen, and two modubar instances on a dual-screen xinerama setup do work fine). Would you explain what problem you experienced?

By alius (User), on Wed Jan 25 04:32:33 2006.

Hey! Can anybody help with it? I dont understand how to start it. I've installed adesklets. Then I run ./modubar.py in /usr/bin. It asks wheter to register it or test. I register it. After that it asks to restart adesklets. I run adesklets again and nothing:(
Help please!

By alius (User), on Wed Jan 25 07:04:36 2006.

if I start adesklets and then run ./modubar.py I get these errors:

Traceback (most recent call last):

File "./modubar.py , line 749, in ?
adesklets.Events_handler, __init__(self)
File "/usr/local/lib/python2.4/commands.py", line 144, in start_recording
...

and so on. I also get an error which tells that I compiled without GNU history whilist I compiled it with "./configure --enable-history"

the same problem is with yab. but no problem with weather =/

I have OpenBSD 3.8

By syfou (Core Developer & Desklet Author), on Wed Jan 25 11:51:50 2006.

alius wrote:


I also get an error which tells that I compiled without GNU history whilist I compiled it with "./configure --enable-history".

Unfortunately, I do not have access to any OpenBSD system to test adesklets: that's why it is not listed as a supported platform in the manual -- if you can hep me on this (for instance with a remote access via ssh), I will be more than happy to support you further, just let me know (syfou@users.sourceforge.net).

This said, what happens here is pretty clear: you most probably had a "Could not find GNU history library in the system" warning at configuration time: history support is required for any desklet that uses indirect mode of execution (modubar does, weather don't). If you look at configure.ac, you will see that autoconf: You can know for sure what went wrong looking at your config.log... This is pretty standard procedure, but it is always possible things are structured differently on OpenBSD, or that you do not have a history-enabled instalment of GNU readline.

I hope this helps somehow. Yours,

By alius (User), on Thu Jan 26 14:53:37 2006.

check mail.

strange because i do have history.h though i don't have libhistory =/ i'll try to think something out

By s5vi (User), on Fri Jan 27 15:39:29 2006: yab and modubar fails on mandriva 2006.

Please advise me
I used modubar and other adesklets in my mandriva 2005
Now i installed mandriva 2006, and compile adesklets 0.5.0
(python-devel needed)
Both modubar and yab looks like work until i move mouse
then close (other desklets works on my desktop only modubar closes)
Err msg is : *** buffer overflow detected ***: asdeklets terminated
Wm is fluxbox.
I've tried it with default config.txt, both modubar and yab closes.
I think i missed some package (but compiled with success)
Or these bars and mandriva 2006 not compatible each other ????
Thanks , anyway adesklets is great....

By syfou (Core Developer & Desklet Author), on Fri Jan 27 17:07:06 2006: Re: yab and modubar fails on mandriva 2006.

s5vi wrote:

Please advise me
[...]
Err msg is : *** buffer overflow detected ***: asdeklets terminated

I do not believe there is anything wrong or missing with your adesklets build: this message comes from the low-level C library (glibc on most Linux distributions, including Mandriva).

The explanation is pretty simple: compared to most other desklets, both yab and modubar pipe long commands to adesklets; when the pipe buffer gets full, the expected BSD 4.3 and POSIX behavior is to put the producer process (the desklet) to sleep until the consumer (the adesklets interpreter) has emptied the buffer enough to resume normal operation -- unfortunately, sometimes this fails on some libc / kernel combinations (due to timing issues, security enforcement policies, special switches used when bootstrapping the C library, really heavy load...), and you end up with a terminated process...

The "right" way to correct this is to choose a well-behaved libc and kernel. The "dirty" way is to manually change the input buffer size in the interpreter code; around line 581 of src/adeskletc.c, you could put something like:

Code:


/* Make sure the stdin buffer is big enough */
  if (setvbuf(stdin,NULL,_IOLBF,8192)!=0) {
    fprintf(stderr,"Could not change stdin buffer size\n");
    return 0;
  }


Do not forget to do:

Code:


touch scripting/enums scripting/prototypes


Before recompiling if you want to avoid problems with the python package. You might have to play around with the buffer size to find what's right for you. Yours,

By syfou (Core Developer & Desklet Author), on Fri Jan 27 22:25:16 2006.

Thanks for the access to the OpenBSD 3.8 machine, alius. :-)

Well, this turned out to be simple: Yours,

By alius (User), on Sat Jan 28 07:57:20 2006.

grrrrr. now I have the same problem as above. when I move mouse modubar crashes. But I have "interruptions" error =/ so the battle continues ;)

after some "hacks" i get ImportError: cannot import name version

rrrrr.
* went to learn python ;)


UPD:

adesklets now works fine with your patch! I'll make port for openbsd. the problem I've described above is connected with modubar (because yab works great). It is in some function that tries to zoom the icon when you point on it with the mouse

By Kloppster (User), on Tue Jan 31 14:52:25 2006.

syfou wrote:

Kloppster wrote:

Is it possible to run multiple modubars? I have a dual monitor setup and I would like to have an instance on each desktop, currently it is only displaying on the one. When I try and start a second instance nothing happens.

Yes, it is; I myself use a multi-monitor setup, and I just tested it successfully (both one modubar instance per screen, and two modubar instances on a dual-screen xinerama setup do work fine). Would you explain what problem you experienced?


Basically when I run a second modubar it is nowhere to be seen on my second screen. I have even manually edited my .adesklets file to put it in the same coordinates as the one one screen 0 but it still doesn't display. I am also using a calendar and it appears fine. Here is what my .adesklets looks like:

[/home/stefan/.desklets/modubar-0.0.1/modubar.py]
id=2 screen=0 x=327 y=938

[/home/stefan/.desklets/calendar/Calendar.py]
id=4 screen=0 x=1094 y=51

[/home/stefan/.desklets/modubar-0.0.1/modubar.py]
id=6 screen=1 x=327 y=938

[/home/stefan/.desklets/calendar/Calendar.py]
id=8 screen=1 x=1094 y=51

Any help would be appreciated...

By syfou (Core Developer & Desklet Author), on Tue Jan 31 19:44:10 2006.

Kloppster, I just cannot reproduce this... What happens when you do:

Code:


adesklets --killall && \
env ADESKLETS_ID=6 DISPLAY=:0.1 /path/to/modubar.py


?

By Kloppster (User), on Wed Feb 1 14:27:11 2006.

When I run that nothing happens. I see two modubar processes, but don't see it anywhere.

Two processes running:
python ~/.desklets/modubar-0.0.1/modubar.py
adesklets ~/.desklets/modubar-0.0.1/modubar.py

By syfou (Core Developer & Desklet Author), on Wed Feb 1 16:13:11 2006.

We are slowly getting somewhere... Please send me your $HOME/.desklets/modubar-0.0.1/config.txt by email (syfou@users.sourceforge.net).

[EDIT]
Solved by email: configuration problem that was not related to multi-heads displays.

By Karol (User), on Wed Apr 19 09:19:50 2006.

http://rchem.chemd.amu.edu.pl/~karol/modubar.png
what can I do?
my config:

Quote:

id0 = {'bar_background_1': 'AAAAAA',
'bar_background_2': None,
'bar_foreground': '000000',
'bar_gradient_angle': 0,
'bar_height': 32,
'bar_opacity_1': 100,
'bar_opacity_2': None,
'caption_above': False,
'caption_color': 'AAAAAA',
'caption_delay': 0.10000000000000001,
'caption_fade_in': True,
'caption_fade_in_duration': 0.5,
'caption_fade_in_steps': 10,
'caption_font': 'Vera',
'caption_size': 20,
'click_effect': 'tint(alpha=100,red=100,green=100,blue=100);',
'click_effect_duration': 0.10000000000000001,
'icon_max_height': 128,
'icon_max_width': 128,
'icon_maximize_threshold': 1.0,
'icon_min_height': 64,
'icon_min_width': 64,
'icon_spacing': 5,
'icons': [('emacs.png', 'GNU Emacs', 'emacs'), ('firefox.png', 'Firefox', 'firefox'), ('gimp.png', 'The GIMP', 'gimp-2.0'), ('terminal.png', 'Terminal', 'xterm'), ('xmms.png', 'XMMS', 'xmms')],
'mod_background_1': 'AAAAAA',
'mod_background_2': None,
'mod_clock_font': 'Vera',
'mod_clock_size': 16,
'mod_font_color': '000000',
'mod_font_opacity': 'FF',
'mod_foreground_1': '000000',
'mod_foreground_2': None,
'mod_gradient_angle': 0,
'mod_opacity_1': 100,
'mod_opacity_2': None,
'module_height': 32,
'modules': [('clock', 1)],
'modules_on': True}

By syfou (Core Developer & Desklet Author), on Wed Apr 19 14:48:40 2006.

Karol wrote:

what can I do?

As already mentioned, this is not related to modubar itself. I encountered this three time already, and the problem has always been the age of the Imlib2 library used. Go grab something newer:: even debian stable has Imlib2 1.2.0 these days! ;-)

By Karol (User), on Thu Apr 20 01:04:41 2006.

Code:

bash-3.00$ ls /var/log/packages/ |grep imlib
imlib-1.9.15-i486-1
imlib2-1.1.0-i386-1


too old?

By syfou (Core Developer & Desklet Author), on Thu Apr 20 01:10:09 2006.

Yes, it is to old : imlib2 1.1.0 is about three years old, and adesklets absolutely refuses to compile on anything older than Imlib2 1.1.2. Yours,

By Karol (User), on Thu Apr 20 09:53:59 2006.

okey I will try

edit:

it's works :) version 1.2.2

By tioneb (User), on Thu May 18 05:06:47 2006: Idea.

It may be great to have a kind of modbar but in a circle presentation not in a rectangular one, I've seen a desklet like that on gdesklet and it looks great.
http://gdesklets.gnomedesktop.org/shot/shot-small1.jpg

What's your opinion ?

By tioneb (User), on Tue May 23 04:42:35 2006.

Is it possible to have modubar on top of other windows (Nautilus, firefox ...) ?

By syfou (Core Developer & Desklet Author), on Tue May 23 06:04:43 2006.

tioneb, the answer is here (two first posts). Yours,

By mbokil (Desklet Author), on Fri Jun 30 09:47:27 2006: modubar crashes sometimes.

Modubar crashes when I move the mouse pointer across the icons fast several times. Is there a way to fix this?

By syfou (Core Developer & Desklet Author), on Fri Jun 30 13:13:32 2006.

In my experience, yab is more stable: do you have the same problem with it? I haven't heard of Mike Panchenko (modubar's author) in more than a year: modubar is pretty much dead code, and I ponder over the possibility to remove it from the site altogether, along with a few others such as torsmotoy. Yours,

By mbokil (Desklet Author), on Fri Jun 30 23:38:52 2006.

You are definately right about the stability issue. I switched to yab and the crashing went away. Perhaps modubar should be retired until it is deemed stable again.

By syfou (Core Developer & Desklet Author), on Sat Jul 1 05:50:10 2006.

In my experience, modubar was always somewhat unstable on a number of systems, and perfectly stable on others: I have no indication it has been worse recently... Modubar is heavily based on yab, which I wrote and thoroughly tested (if you ran a diff between the two, you would not find more than 10% of added code). I encouraged its publication in the first place because I didn't want to test and correct that additional code, yet I didn't want keeping the users from having the added functionality it provided either.. I hoped Mike and others would catch on and eventually make it better -- it didn't happen, but it's never too late.

Clearly, I would be happy if anyone would take care of this desklet... If not, I guess I will have, as you suggested, to move it along torsmotoy and the late (and missed!) pacman to a special "desklets graveyard" page, hoping someone will have it resurrected.

By mrazster (User), on Thu Jul 6 03:08:54 2006.

Hello fellas...my first post here.

I recently discovered adesklet and modubar...and this is what I been looking for a lightweight desklet with that kind of functionality. However, I've ran inte to a small problem.
The desklet is perfectly stabel with default configuration...I've even changed the icons and everything is peachy...BUT...I can't for the love of god add any more icons. If trie to add one more it just refuses to start....I spent the whole last evening trying in different ways. This is how my config.txt looks atm:

Code:

'icons': [('gaim.png', '', 'gaim'),
         ('firefox.png', '', 'firefox'),
         ('home.png', '', 'thunar'),
         ('terminal.png', '', 'gnome-terminal'),
         ('rhythmbox.png', '', 'rhythmbox')],


Bet when I try to do for example:

Code:

'icons': [('gaim.png', '', 'gaim'),
         ('firefox.png', '', 'firefox'),
         ('home.png', '', 'thunar'),
         ('terminal.png', '', 'gnome-terminal'),
         ('rhythmbox.png', '', 'rhythmbox'),
         ('mplayer.png', '', gmplayer')],


It simply refuses to start. Is there anything else I need to change in order to make it work? I'm currently using adesklets 5.0.2.....tried to compile the latest one but that was a "no go". I've also tried to reinstall everything but still a "no go"

Using:
adesklets 5.0.2
modubar 0.0.1
kernel 2.6.17.3
Xfce 4.3.90.2 (beta 4.4)

By syfou (Core Developer & Desklet Author), on Thu Jul 6 05:56:37 2006: Those pesky quotes....

Hi mrazster,

there is a typo in your example snippet: your misquoted the 'gmplayer' string literal on the last line; you probably meant to write:

Code:


 ('mplayer.png', '', 'gmplayer')],


This alone is enough to prevent a desklet instance from running... Always test the desklet with your new configuration before registering, this way you will get a useful trace on what goes wrong on the standard output. Alternatively, if you just want to perform a syntax check on your desklet configuration file (that would have been enough to detect this problem), just do:

Code:


python < config.txt


No output means the configuration can at least be parsed. Yours,

By mrazster (User), on Thu Jul 6 15:18:08 2006: Re: Those pesky quotes....

syfou wrote:

Hi mrazster,

there is a typo in your example snippet: your misquoted the 'gmplayer' string literal on the last line; you probably meant to write:

Code:


 ('mplayer.png', '', 'gmplayer')],



OMFG...I can't belive my self....I'm sorry for beeing so blind and n00bish. :oops: :)

Everything works perfect now......thnx a buch for the heads up.

By mrazster (User), on Sun Aug 6 19:10:17 2006.

OK guys...so I got another on here.

If I want to run modubar in a vertical position...how do I go about doing that??
Have been looking around in the config files...but not sure what and where to look for/after.


adesklets is proud to be hosted on:

SourceForge.net Logo

Back to adesklets.sf.net.