summaryrefslogtreecommitdiff
path: root/scripts/xdg-email.in
diff options
context:
space:
mode:
authorRex Dieter <rdieter@math.unl.edu>2014-09-22 15:29:40 -0500
committerRex Dieter <rdieter@math.unl.edu>2014-09-22 15:29:40 -0500
commit345ef333025ba386494a7ca0bc1ccd91f319f926 (patch)
treec619edb9d9328be29291cbcd7b2a07e70349e53e /scripts/xdg-email.in
parent18645a50fe25064b42ba421e231869c6063705f7 (diff)
more plasma5: ktraderclient5, kreadconfig5, kwriteconfig5
Diffstat (limited to 'scripts/xdg-email.in')
-rw-r--r--scripts/xdg-email.in9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/xdg-email.in b/scripts/xdg-email.in
index e68425c..c8909d0 100644
--- a/scripts/xdg-email.in
+++ b/scripts/xdg-email.in
@@ -85,8 +85,13 @@ run_thunderbird()
open_kde()
{
local client kde_email_profile_name
- kde_email_profile_name=`kreadconfig --file emaildefaults --group Defaults --key Profile`
- client=`kreadconfig --file emaildefaults --group PROFILE_"$kde_email_profile_name" --key EmailClient | cut -d ' ' -f 1`
+ if [ x"${KDE_SESSION_VERSION}" = x"5" ]; then
+ kde_email_profile_name=`kreadconfig5 --file emaildefaults --group Defaults --key Profile`
+ client=`kreadconfig5 --file emaildefaults --group PROFILE_"$kde_email_profile_name" --key EmailClient | cut -d ' ' -f 1`
+ else
+ kde_email_profile_name=`kreadconfig --file emaildefaults --group Defaults --key Profile`
+ client=`kreadconfig --file emaildefaults --group PROFILE_"$kde_email_profile_name" --key EmailClient | cut -d ' ' -f 1`
+ fi
echo $client | grep thunderbird > /dev/null 2>&1
if [ $? -eq 0 ] ; then
run_thunderbird "$client" "$1"