You are not logged in.

#1 2010-10-09 12:05:42

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

[solved] Conky 1.81 and execpi regression (messed up output)?

Hi all,

I have a script which dynamically outputs the following lines

${font dejavusansmono:size=8}$color1${fs_free_perc /}% free on /$alignr${diskio disk/by-uuid/9f90f2fa-49ce-4fb7-886b-bcebbc2fc231}/s
   $color3${fs_bar 14 /}
   $color1${voffset -20}$alignr${fs_used /}/${fs_size /} $font
${font dejavusansmono:size=8}$color1${fs_free_perc /home}% free on /home$alignr${diskio sda6}/s
   $color3${fs_bar 14 /home}
   $color1${voffset -20}$alignr${fs_used /home}/${fs_size /home} $font
${font dejavusansmono:size=8}$color1${fs_free_perc /home/data}% free on /home/data$alignr${diskio sda5}/s
   $color3${fs_bar 14 /home/data}
   $color1${voffset -20}$alignr${fs_used /home/data}/${fs_size /home/data} $font

When I copy the output and paste it into my conky, it shows as expected, but when I run the script via ${execpi 6 /path/to/my/script} it comes out messed up.

Does anyone else see this? I was going to submit it to conky's bug tracker but a quick look at their sourceforge site doesn't reveal any such.
31pM0.jpg

Last edited by ngoonee (2011-10-27 00:39:47)


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#2 2010-10-09 12:37:37

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: [solved] Conky 1.81 and execpi regression (messed up output)?

Yep, by having

$alignr${execi 300 cat /home/archman/.scripts/reminder}

in my config, where the "reminder" file holds more than one line, only the !first! line gets the alignment to the right, the rest is to the left.
If I substitute execi with execpi, everything is doing good.
I have asked about this on their irc channel, but noone responded for, like, three hours. Maybe you should open a bug report there.

Offline

#3 2010-10-09 17:16:15

Emeric
Member
From: France
Registered: 2009-03-18
Posts: 30
Website

Re: [solved] Conky 1.81 and execpi regression (messed up output)?

Same here, execpi screwing everything after the first printed line...


"If you're not a part of the solution, there's good money to be made in prolonging the problem"

Offline

#4 2010-10-09 17:29:11

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [solved] Conky 1.81 and execpi regression (messed up output)?

I noticed 1.8.1 ignores gap_y. Passing -y $value when calling conky doesn't work either. -x $value or gap_x $value works, for some odd reason. Maybe this is related?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2010-10-09 17:56:59

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,538

Re: [solved] Conky 1.81 and execpi regression (messed up output)?

The changelog has a few commits and reverts related to $alignr and $execp/$execpi

Offline

#6 2010-10-09 19:36:11

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: [solved] Conky 1.81 and execpi regression (messed up output)?

Emeric wrote:

Same here, execpi screwing everything after the first printed line...

I get the opposite effect. If I use execi, only the first line is alligned...

Offline

#7 2010-10-09 23:49:10

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: [solved] Conky 1.81 and execpi regression (messed up output)?

It seems that they break parsing of new lines somehow. In my case execi works fine (use it elsewhere in my conky) and execpi screws up every start of a newline with some weird character.

Where's the conky bugtracker, anyone? My IRC is flaky, so don't prefer to use that nowadays.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#8 2010-10-09 23:56:34

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [solved] Conky 1.81 and execpi regression (messed up output)?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#9 2010-10-10 02:30:12

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: [solved] Conky 1.81 and execpi regression (messed up output)?

https://sourceforge.net/tracker/?func=d … tid=757308

Submitted, in case anyone wants to follow up.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#10 2010-10-10 08:44:50

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: [solved] Conky 1.81 and execpi regression (messed up output)?

I get this when using

$alignr${execi 300 cat /home/archman/.scripts/reminder}

tNXJ1Yw
...and this when using

$alignr${execpi 300 cat /home/archman/.scripts/reminder}

tNXJ1ZA

ngoonee, you can link this post to your bug report if you want.

Cheers.

Offline

#11 2010-10-10 10:42:30

cga
Member
Registered: 2010-08-11
Posts: 25

Re: [solved] Conky 1.81 and execpi regression (messed up output)?

Hi,

I have the same problem, neither execpi nor execi work for me. They both screw my output.

I hope they fix it soon.

Offline

#12 2010-10-11 14:57:26

klerik
Member
Registered: 2006-08-06
Posts: 15

Re: [solved] Conky 1.81 and execpi regression (messed up output)?

Hi, i have the same problem. Sorting of multiple lines is broken.

Offline

#13 2010-10-13 10:34:48

pingviin
Member
From: Estonia
Registered: 2009-11-05
Posts: 37
Website

Re: [solved] Conky 1.81 and execpi regression (messed up output)?

came to confirm.

Offline

#14 2010-12-08 19:27:45

tjpp
Member
Registered: 2009-09-13
Posts: 9

Re: [solved] Conky 1.81 and execpi regression (messed up output)?

As a workaround, I redirect the script's output to a file and cat it. See an example below

${execpi 3600 paconky ~/.scripts/repos.paconky > ~/.scripts/repos.out; cat ~/.scripts/repos.out  }

Before

${execpi 3600 paconky ~/.scripts/repos.paconky }

Offline

#15 2010-12-22 12:02:30

BaconPie
Member
Registered: 2010-08-11
Posts: 209

Re: [solved] Conky 1.81 and execpi regression (messed up output)?

That work around doesn't work for me, I use this script:

$ cat diskSpace 
#!/bin/bash
#: Description : Shows the free space of attached devices for Conky

## List of places to be displayed if mounted
placesDisplayed=/home/tom/.ConkyScripts/placesDisplayed

## Go through each place
while read place
do
  ## If they exist in mtab then print them and their size
  if [[ $( mount | grep -c $place ) -gt 0 ]]
  then
    printf "%s \${alignr}\${fs_used %s} / \${fs_size %s}\n" $place $place $place
  fi
done < $placesDisplayed

and it outputs:

/ ${alignr}${fs_used /} / ${fs_size /}
/home ${alignr}${fs_used /home} / ${fs_size /home}
/mnt/Windows ${alignr}${fs_used /mnt/Windows} / ${fs_size /mnt/Windows}
/media/iphone ${alignr}${fs_used /media/iphone} / ${fs_size /media/iphone}

Which currently looks like this.

It does the same thing with your workaround...

The conky bug tracker is useless, no one has done anything about it in months. Any better work arounds or, even better, how would I go about patching this myself?

Edit: Ok so I downloaded the source and the change log says that the fix was added in 2009:

2009-07-18
    * Added compilation switch --enable-xoap to be able to use
    www.weather.com as a source of weather data (this avoids adding
    libxml2 as a required dependency for users that wish to use noaa
    and not weather.com)
    * Added support for X alignment across multi-lined objects (i.e., using
    $alignr with $exec)
    * Disabled OpenMP code until GCC's implementation stabilizes
    * www.weather.com can now be used as well as a source of weather data

How old is the one in the arch repos?

Unless this is only fixing alignr before and execp instead of in an execp. (Sorry for the wall of text, I've got to put this somewhere otherwise in another month it'll bug me again until it's fixed).

Last edited by BaconPie (2010-12-22 12:17:39)

Offline

#16 2010-12-22 14:02:29

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,538

Re: [solved] Conky 1.81 and execpi regression (messed up output)?

Maybe that "fix" is what broke it.

See if you can find a version of 1.8.0

Offline

#17 2010-12-22 15:38:32

BaconPie
Member
Registered: 2010-08-11
Posts: 209

Re: [solved] Conky 1.81 and execpi regression (messed up output)?

skunktrader wrote:

1.8.0

Yep smile 1.8.0 works great!

So, what now? Do I post the bug on sourceforge?

Last edited by BaconPie (2010-12-22 15:41:55)

Offline

#18 2010-12-22 15:42:24

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,538

Re: [solved] Conky 1.81 and execpi regression (messed up output)?

Offline

#19 2010-12-22 15:50:39

BaconPie
Member
Registered: 2010-08-11
Posts: 209

Re: [solved] Conky 1.81 and execpi regression (messed up output)?

Yeah I was going to mention that but it looks like it's been spammed to hell. sad

Oh well, I'll just wait for 1.8.2.

Offline

#20 2010-12-22 23:17:59

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: [solved] Conky 1.81 and execpi regression (messed up output)?

BaconPie wrote:

Yeah I was going to mention that but it looks like it's been spammed to hell. sad

Oh well, I'll just wait for 1.8.2.

Yes, the spamming is horrendous, I'm getting like 12 emails a day from that bug report.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#21 2010-12-23 00:11:41

BaconPie
Member
Registered: 2010-08-11
Posts: 209

Re: [solved] Conky 1.81 and execpi regression (messed up output)?

If you use gmail then you can set up a filter to block any emails about posts from that user:

Matches: from:(noreply@sourceforge.net) subject:([ conky-Bugs-3084509 ] 1.8.1 - execpi doesn't properly parse multi-line) Comment By: Nobody/Anonymous (nobody)
Do this: Skip Inbox, Delete it

Gmail -> Settings -> Filter. Just work the filter until you get just the spam emails; like friendly SQL. smile

If you don't use gmail then yeah, that sucks...

Last edited by BaconPie (2010-12-23 00:11:57)

Offline

#22 2010-12-23 03:50:41

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: [solved] Conky 1.81 and execpi regression (messed up output)?

I'm pretty sure all email providers have filters smile. The point is I haven't logged in to my webmail for ages now (use offlineimap and evolution) so its just the (small) hassle of having to do it.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#23 2010-12-24 14:42:43

murr
Member
From: UK
Registered: 2008-04-01
Posts: 11

Re: [solved] Conky 1.81 and execpi regression (messed up output)?

@BaconPie
The workaround which I am using is to add a carriage return (\r) at every point where I want Conky to start a new line.  This works for me with a script which uses sed to pass formatted text to $execpi.

Offline

#24 2010-12-26 22:37:26

jalu
Member
Registered: 2009-04-05
Posts: 140

Re: [solved] Conky 1.81 and execpi regression (messed up output)?

I've had this bug for a while, but thought it might just be me. Thanks for doing all the work for me, everyone! :-D

Do we have any confirmation that the Conky team actually knows about this? The SorceForce bug tracker doesn't seem to be doing its job very well, encouraging people to ignore rather than read the useful messages.

edit: If not, I can track down one of the developers and send a link to this very useful issue on your behalf.

Last edited by jalu (2010-12-26 22:39:08)

Offline

#25 2010-12-27 00:16:48

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: [solved] Conky 1.81 and execpi regression (messed up output)?

Yes please do, their bugtracker seems inactive at the least (on this issue)


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

Board footer

Powered by FluxBB