You are not logged in.
Pages: 1
[1st post!]
For use with conky, is there a file that contains the current xfce version number? I looked in /etc for a version file, but didn't find anything. Where does xfce-about get its info?
TIA
xfce 4.10 with xubuntu 13.10
Last edited by Jerry3904 (2013-11-09 13:37:35)
MX-23 (based on Debian Stable) with our flagship Xfce 4.18.
Offline
Hello and welcome to the Xfce forums.
xfce4-about -V
will display what you're looking for. For Conky, perhaps something like:
xfce4-about -V | head -1 | sed -e 's/xfce4-about //g'
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Thanks for the quick reply! That works in the terminal, now need to figure out how to do it in conky.
Great desktop BTW...
MX-23 (based on Debian Stable) with our flagship Xfce 4.18.
Offline
now need to figure out how to do it in conky.
How about something like:
${exec xfce4-about -V | head -1 | sed -e 's/xfce4-about //g'}
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
I'll give it a try, thanks.
MX-23 (based on Debian Stable) with our flagship Xfce 4.18.
Offline
For Conky, perhaps something like:
xfce4-about -V | head -1 | sed -e 's/xfce4-about //g'
Why "sed -e", which points to a source for sed actions? sed 's/xfce4-about //g' works fine.
Offline
ToZ wrote:For Conky, perhaps something like:
xfce4-about -V | head -1 | sed -e 's/xfce4-about //g'
Why "sed -e", which points to a source for sed actions? sed 's/xfce4-about //g' works fine.
True (bad habits?). You can also use cut:
xfce4-about -V | head -1 | cut -d' ' -f2-
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Thanks, I was just curious...
Offline
You can also use cut:
xfce4-about -V | head -1 | cut -d' ' -f2-
Thanks for that. I've been wondering if it was possible but never got around to looking into it. I wasn't aware of the -V option.
BTW I thought the whole output was repetitive so just use
xfce4-about -V | head -1 | cut -d' ' -f2
which just shows '4.10.0'.
Offline
You can try this.
xfce4-about -V | head -1 | awk '{print $2}'
You can try this.
xfce4-about -V | head -1 | awk '{print $2}'
Yes that's another way of doing it, produces the same output so just as acceptable.
Offline
Pages: 1
[ Generated in 0.015 seconds, 7 queries executed - Memory usage: 560.53 KiB (Peak: 577.38 KiB) ]