Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Applets | Applets Calendar applet corrupted output around current day
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Applets | Applets

Subjects Author Language Messages Last message
[Locked] Calendar applet corrupted output around current day
geolaw English 5 matttbe [Read]
06 September 2014 à 18:59

geolaw, Thursday 28 August 2014 à 04:58


Subscription date : 28 August 2014
Messages : 2
I am running on crunchbang - which is debian based.
The calendar applet is showing

    Cairo-Dock version : 3.3.2
    Compiled date : Nov 6 2013 13:21:01
    Built with GTK : 3.4
    Running with OpenGL: 1
http://geolaw.com/cairo-calendar.png

http://geolaw.com/cairo-calendar.png
I can update Calendar.sh and make it call a wrapper script (/home/glaw/bin/pretty_cal) where I do something like this:
cal |sed 's/_^H//g' ... but that still does not fix the text wrapping.

taiebot65, Sunday 31 August 2014 à 18:12


Subscription date : 26 October 2008
Messages : 1904
I am not seeing this at all with a fresh install of the calendar applet
Maybe you could run the dock with the option the option -l debug and post it here to see what could be wrong.

matttbe, Wednesday 03 September 2014 à 22:50


Subscription date : 24 January 2009
Messages : 12573
Hello,

Can you check if 'ncal' is installed?

geolaw, Friday 05 September 2014 à 03:25


Subscription date : 28 August 2014
Messages : 2
ncal is not installed - this is running on crunchbang which is debian wheezy based.
My cal is from bsdmainutils
$ dpkg -S /usr/bin/cal
bsdmainutils: /usr/bin/cal

$ dpkg -S /usr/bin/ncal
bsdmainutils: /usr/bin/ncal

If I redirect cal to a file, it shows embedded control characters ... perhaps something with this version?

September 2014
Su Mo Tu We Th Fr Sa
1 2 3 _^H _^H4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

brianw, Friday 05 September 2014 à 14:17


Subscription date : 25 April 2012
Messages : 270
The problem is that if ncal is not installed it falls back on cal but does not use the -h flag. The parameters for ncal are set to -hC which says (-h) don't display the special highlight characters for the current day and (-C) fall back to cal display mode. It would seem that the cal function in crunchbang uses the new cal version and the calendar applet assumes that the cal function does not support the -hC option.

for an intermediate fix geolaw you could edit the file .config/cairo-dock/third-party/Calendar/Calendar.sh and comment out the line that reads
CAL_PARAM="" # original 'cal' doesn't support -hC options
or just put -h as the parameter. This line is in the on_click() function and should be on line 62 (in the one I just downloaded and viewing in vi anyway).

You could also test that it works with -hC from the command line first.
cal -hC

matttbe, Saturday 06 September 2014 à 18:59


Subscription date : 24 January 2009
Messages : 12573
Hello,

Can you maybe try with this command?
cal | cat -v | sed -e "s/_^H//g"


EDIT: like that: rev 460

Applets | Applets

Subjects Author Language Messages Last message
[Locked] Calendar applet corrupted output around current day
geolaw English 5 matttbe [Read]
06 September 2014 à 18:59


Glx-Dock / Cairo-Dock List of forums Applets | Applets Calendar applet corrupted output around current day Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.