Bug 28564

Summary: Conky (system monitor) does not work in Mageia-8, does with Cauldron version
Product: Mageia Reporter: Alex Kotov <alex_q_2000>
Component: RPM PackagesAssignee: Stig-Ørjan Smelror <smelror>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal    
Version: 8   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: conky-1.11.6-1.mga8.src.rpm CVE:
Status comment:

Description Alex Kotov 2021-03-09 13:27:31 CET
Description of problem:
---
Hello. Conky (system monitor) not work.

Version-Release number of selected component (if applicable):
---
conky-1.11.6-1.mga8.x86_64.rpm

How reproducible (in terminal):
---
su/password
> urpmi --auto conky-manager conky
> exit

#I launch "conky-manager" from the terminal and select any widget in its window...

> conky-manager
[14:47:47] Desktop: unknown
[14:47:47] Found theme pack [installed]: /usr/share/conky-manager/themepacks/default-themes-2.1.cmtp.7z
[14:47:47] App config loaded: '/home/marsik/.config/conky-manager.json'
[14:47:48] Searching for conkyrc files... 12 found

conky: Syntax error (/home/marsik/.conky/Conky Seamod/conky_seamod:2: unexpected symbol near '#') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:159: attempt to call a nil value (global 'loadstring')

Solution:
---
su/password
> mkdir ./111 && cd ./111
> wget https://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/x86_64/media/core/release/conky-1.12.1-1.mga9.x86_64.rpm

urpmi --auto ./*.rpm

#...and then everything is fine.

Conclusion:
---
In Mageia-8 "Conky" does not work, and installed from Mageia-Cauldron works.

Kind regards,
Alex
Comment 1 Lewis Smith 2021-03-09 20:58:00 CET
Thank you for this report, and your conclusion.
The latest one that works, conky-1.12.1-1.mga9.x86_64.rpm, is very recent.

Assigning to Stig as active packager for conky.

Assignee: bugsquad => smelror
Summary: Conky (system monitor) does not work in Mageia-8 => Conky (system monitor) does not work in Mageia-8, does with Cauldron version

Comment 2 Stig-Ørjan Smelror 2021-03-10 09:49:26 CET
Hi Alex.

Please try to delete ${HOME}/.conkyrc and run conky without using conky-manager first.

I suspect that conky-manager is creating an outdated .conkyrc and it throws an error.

Conky updated the format of .conkyrc in version 0.11 I believe. There _is_ a way to convert from the old format to the new, but I don't remember the command at the moment.

Will do a search and post here if/when I find it.

Cheers,
Stig
Comment 3 Alex Kotov 2021-03-10 11:07:36 CET
(In reply to Stig-Ørjan Smelror from comment #2)
> Hi Alex.
> 
> Please try to delete ${HOME}/.conkyrc and run conky without using
> conky-manager first.
> 
> I suspect that conky-manager is creating an outdated .conkyrc and it throws
> an error.
Hi, Stig.
> find ${HOME}/.conkyrc -type f
find: ‘/home/marsik/.conkyrc’: Нет такого файла или каталога (so "file not found")

Please note that I have upgraded exclusively "conky" package. "conky-manager" remains the same, i.e. from the Mageia-8.

In the sources from 2017, the conversion was first mentioned, for example, here:
https://forums.bunsenlabs.org/viewtopic.php?id=3983

I've already tried to figure out exactly what to convert with this script:
/usr/share/doc/conky/convert.lua
...but I never found.

So I went the other way and updated "conky" with the new package you made. :)

Cheers,
Alex