Index: scripts/xdg-email =================================================================== RCS file: /cvs/portland/portland/xdg-utils/scripts/xdg-email,v retrieving revision 1.52 diff -u -r1.52 xdg-email --- scripts/xdg-email 24 Sep 2010 17:47:58 -0000 1.52 +++ scripts/xdg-email 7 Nov 2010 23:38:00 -0000 @@ -434,8 +434,9 @@ open_kde() { - local client - client=`kreadconfig --file emaildefaults --group PROFILE_Default --key EmailClient | cut -d ' ' -f 1` + 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` echo $client | grep thunderbird > /dev/null 2>&1 if [ $? -eq 0 ] ; then run_thunderbird "$client" "$1" Index: scripts/xdg-email.in =================================================================== RCS file: /cvs/portland/portland/xdg-utils/scripts/xdg-email.in,v retrieving revision 1.40 diff -u -r1.40 xdg-email.in --- scripts/xdg-email.in 28 Oct 2010 20:54:28 -0000 1.40 +++ scripts/xdg-email.in 7 Nov 2010 23:38:01 -0000 @@ -84,8 +84,9 @@ open_kde() { - local client - client=`kreadconfig --file emaildefaults --group PROFILE_Default --key EmailClient | cut -d ' ' -f 1` + 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` echo $client | grep thunderbird > /dev/null 2>&1 if [ $? -eq 0 ] ; then run_thunderbird "$client" "$1"