[opensuse-kde] Kmail, automatic signature file
Since years I am using a automatic signature file in my kmail to sign me emails. Today I discovered that the automatic file did not show the actual use of my KDE. I assume that in the meantime this signature should have shown that I am using KDE5 so I had a look at the file. Changing the first KDE4 in KDE5 was no showstopper but the automatic read of kde='kde4-config -v |grep KDE' echo "" $kde into: kde='kde5-config -v |grep KDE' echo "" $kde did result in an empty space. Could somebody help me out with the right command sentence? original file: ------------- powered="(head -n 1 /etc/SuSE-release)" echo " Linux User 183145 using KDE4 Tumbleweed on a Pentium IV ," kernel='uname -r' echo " powered by $powered Kernel : $kernel" kde='kde4-config -v |grep KDE' echo "" $kde uptime --------------- -- Linux User 183145 using KDE5 Tumbleweed on a Pentium IV , powered by openSUSE 20160209 (x86_64) Kernel: 4.4.1-4.g4dac1be-default 14:29pm up 23:15, 3 users, load average: 0.66, 1.84, 2.44 $ #!/bin/bash -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde+owner@opensuse.org
In data mercoledì 17 febbraio 2016 14:51:34 CET, C. Brouerius van Nidek ha scritto:
did result in an empty space. Could somebody help me out with the right command sentence?
You'll need "kf5-config". $ kf5-config --version Qt: 5.5.1 KDE Frameworks: 5.20.0 kf5-config: 1.0 -- Luca Beltrame - KDE Forums team KDE Science supporter GPG key ID: A29D259B
Hi, On mercredi 17 février 2016 14:51:34 CET C. Brouerius van Nidek wrote:
Since years I am using a automatic signature file in my kmail to sign me emails. Today I discovered that the automatic file did not show the actual use of my KDE. I assume that in the meantime this signature should have shown that I am using KDE5 so I had a look at the file. Changing the first KDE4 in KDE5 was no showstopper but the automatic read of kde='kde4-config -v |grep KDE' echo "" $kde
into: kde='kde5-config -v |grep KDE' echo "" $kde
Two comments: - As already said on this list, "KDE5" doesn't exist, never did (and probably never will). what you call "KDE5" is: KDE Frameworks + Plasma. - Consequence of the above point, there's no kde5-config executable. You can use `kf5-config -v |grep KDE` To get the Plasma version you can use any binary you certainly have installed, e.g `kcmshell5 -v | awk '{print $2}'`
did result in an empty space. Could somebody help me out with the right command sentence?
original file: ------------- powered="(head -n 1 /etc/SuSE-release)" echo " Linux User 183145 using KDE4 Tumbleweed on a Pentium IV ," kernel='uname -r' echo " powered by $powered Kernel : $kernel" kde='kde4-config -v |grep KDE' echo "" $kde uptime ---------------
On Wednesday, February 17, 2016 9:44:36 AM WIB Christophe Giboudeaux wrote:
Hi,
On mercredi 17 février 2016 14:51:34 CET C. Brouerius van Nidek wrote:
Since years I am using a automatic signature file in my kmail to sign me emails. Today I discovered that the automatic file did not show the actual use of my KDE. I assume that in the meantime this signature should have shown that I am using KDE5 so I had a look at the file. Changing the first KDE4 in KDE5 was no showstopper but the automatic read of kde='kde4-config -v |grep KDE' echo "" $kde
into: kde='kde5-config -v |grep KDE'
echo "" $kde
Two comments: - As already said on this list, "KDE5" doesn't exist, never did (and probably never will). what you call "KDE5" is: KDE Frameworks + Plasma.
- Consequence of the above point, there's no kde5-config executable.
You can use `kf5-config -v |grep KDE`
To get the Plasma version you can use any binary you certainly have installed, e.g `kcmshell5 -v | awk '{print $2}'`
did result in an empty space. Could somebody help me out with the right command sentence?
Thanks all for the help. Got already a better sig but do not get the part plasma ( echo Plasma :) and the version (with kcmshell5 -v | awk '{print $2}') in one line. Seems I am missing some basic bash knowledge.
Just an aditional question, is it right that I still have kcmshell4 in /bin ? Linux User 183145 using Tumbleweed on a Pentium IV , powered by openSUSE 20160212 (x86_64) Kernel: 4.4.1-5.g6398c2d-default KDE Frameworks: 5.18.0 Plasma : 5.5.4 10:31am up 2:19, 3 users, load average: 0.15, 0.14, 0.20 -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde+owner@opensuse.org
On 18/02/16 03:38, C. Brouerius van Nidek wrote:
On Wednesday, February 17, 2016 9:44:36 AM WIB Christophe Giboudeaux wrote:
Hi,
On mercredi 17 février 2016 14:51:34 CET C. Brouerius van Nidek wrote:
Since years I am using a automatic signature file in my kmail to sign me emails. Today I discovered that the automatic file did not show the actual use of my KDE. I assume that in the meantime this signature should have shown that I am using KDE5 so I had a look at the file. Changing the first KDE4 in KDE5 was no showstopper but the automatic read of kde='kde4-config -v |grep KDE' echo "" $kde
into: kde='kde5-config -v |grep KDE'
echo "" $kde
Two comments: - As already said on this list, "KDE5" doesn't exist, never did (and probably never will). what you call "KDE5" is: KDE Frameworks + Plasma.
- Consequence of the above point, there's no kde5-config executable.
You can use `kf5-config -v |grep KDE`
To get the Plasma version you can use any binary you certainly have installed, e.g `kcmshell5 -v | awk '{print $2}'`
did result in an empty space. Could somebody help me out with the right command sentence?
Thanks all for the help. Got already a better sig but do not get the part plasma ( echo Plasma :) and the version (with kcmshell5 -v | awk '{print $2}') in one line. Seems I am missing some basic bash knowledge.
Just an aditional question, is it right that I still have kcmshell4 in /bin ?
Linux User 183145 using Tumbleweed on a Pentium IV , powered by openSUSE 20160212 (x86_64) Kernel: 4.4.1-5.g6398c2d-default KDE Frameworks: 5.18.0 Plasma : 5.5.4 10:31am up 2:19, 3 users, load average: 0.15, 0.14, 0.20
Try editing this script. I've called it daily.sh. See my sig for the result. --- Code --- #!/bin/bash # script to generate a topical linux mailsig SIGFILE=/home/bob/Documents/Signatures/daily.sig : > $SIGFILE # (re)creates an empty SIGFILE echo "Bob Williams" >> $SIGFILE echo " System: " `uname -sr` >> $SIGFILE powered=" $(head -n 1 /etc/SuSE-release)" kde=`kf5-config -v | grep KDE` plasma=`kcmshell5 -v | awk '{print $2}'` echo " Distro: $powered" >> $SIGFILE echo " Desktop: $kde and Plasma $plasma" >> $SIGFILE exit 0 --- Code --- -- Bob Williams System: Linux 4.1.15-8-default Distro: openSUSE 42.1 (x86_64) Desktop: KDE Frameworks: 5.16.0 and Plasma 5.4.3
participants (4)
-
Bob Williams
-
C. Brouerius van Nidek
-
Christophe Giboudeaux
-
Luca Beltrame