Xfce Forum

Sub domains
 

You are not logged in.

#1 2013-11-09 13:09:00

Jerry3904
Member
Registered: 2013-11-09
Posts: 83

is there a xfce version file?

[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-14 (based on Debian Stable) with backported Xfce 4.10 on Acer Aspire One 722

Offline

#2 2013-11-09 13:37:19

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 952

Re: is there a xfce version file?

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'

Offline

#3 2013-11-09 13:44:41

Jerry3904
Member
Registered: 2013-11-09
Posts: 83

Re: is there a xfce version file?

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-14 (based on Debian Stable) with backported Xfce 4.10 on Acer Aspire One 722

Offline

#4 2013-11-09 14:30:01

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 952

Re: is there a xfce version file?

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'}

Offline

#5 2013-11-09 14:53:34

Jerry3904
Member
Registered: 2013-11-09
Posts: 83

Re: is there a xfce version file?

I'll give it a try, thanks.


MX-14 (based on Debian Stable) with backported Xfce 4.10 on Acer Aspire One 722

Offline

#6 2013-11-10 06:58:00

gnome_refugee
Member
Registered: 2010-01-15
Posts: 161

Re: is there a xfce version file?

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.

Offline

#7 2013-11-10 14:41:05

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 952

Re: is there a xfce version file?

gnome_refugee wrote:
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-

Offline

#8 2013-11-10 19:49:02

gnome_refugee
Member
Registered: 2010-01-15
Posts: 161

Re: is there a xfce version file?

Thanks, I was just curious...

Offline

#9 2013-11-11 03:09:58

ozjd
Member
From: Hawkesbury NSW Australia
Registered: 2012-02-05
Posts: 203
Website

Re: is there a xfce version file?

ToZ wrote:

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

#10 2013-11-13 15:53:49

TuxLyn
Member
From: /home/tux
Registered: 2011-11-04
Posts: 17
Website

Re: is there a xfce version file?

You can try this.

 xfce4-about -V | head -1 | awk '{print $2}' 

Blog: GoTux.net

Offline

#11 2013-11-14 02:31:23

ozjd
Member
From: Hawkesbury NSW Australia
Registered: 2012-02-05
Posts: 203
Website

Re: is there a xfce version file?

TuxLyn wrote:

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

Board footer

Powered by FluxBB