[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Kate can't find environment variables set in .kde/env
From:       "M." <infinity.probability () gmail ! com>
Date:       2013-02-28 16:25:17
Message-ID: CACd0G9wwW1S3_ZGmkkeRqp_JV41AqX9PKdAuY4-NbKjQ9vxT=w () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I reported this bugreport for Kate:

https://bugs.kde.org/show_bug.cgi?id=315853

I was instructed to ask here about the correct behavior of sourcing a
script in .kde/env. It seems that Kate can't find anything that is sourced
in .kde/env, even if the scripts there are sourced correctly by startkde.

++++++++++++++++++++++++++++++++++++
Kate Build plugin fails to use environment variables and PATH. If a script
setting a variable or sourcing some script is put in .kde/env, Kate Build
plugin cannot see the variables or programs set. Example: sourcing the
following file #!/bin/sh source /opt/intel/mkl/bin/mklvars.sh intel64
source /opt/intel/composer_xe_2013/bin/compilervars.sh intel64
export PATH=$PATH:/home/tunguska/other_scripts should enable the intel
compiler to be found by make and be used. Kate started from the menu can't
see the compiler, but if Kate is started from the terminal with that script
sourced, it can see the compiler correctly. Reproducible: Always Steps to
Reproduce: 1. Put a script in ~/.kde/env to be sourced when the session
starts. 2. Open Kate, configure the Build plugin to use make. 3. Use
"Build" from Kate menu. Actual Results: make complains it can't find the
executable set in the script. Expected Results: Call the executable
(compiler) correctly.

++++++++++++++++++++++

Thanks for your time,

PS: Please cc me as I'm not on the list.

[Attachment #5 (text/html)]

<div dir="ltr"><div style><span style="color:rgb(46,52,54);font-family:&#39;Open \
Sans&#39;,&#39;Helvetica \
Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:22.399999618530273px;white-space:pre-wrap;background-color:rgb(254,254,254)">I \
reported this bugreport for Kate:</span></div> <div style><span \
style="color:rgb(46,52,54);font-family:&#39;Open Sans&#39;,&#39;Helvetica \
Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:22.399999618530273px;white-space:pre-wrap;background-color:rgb(254,254,254)"><br>
 </span></div><div style><a \
href="https://bugs.kde.org/show_bug.cgi?id=315853">https://bugs.kde.org/show_bug.cgi?id=315853</a><span \
style="color:rgb(46,52,54);font-family:&#39;Open Sans&#39;,&#39;Helvetica \
Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:22.399999618530273px;white-space:pre-wrap;background-color:rgb(254,254,254)"><br>
 </span></div><div style><br></div><div style>I was instructed to ask here about the \
correct behavior of sourcing a script in .kde/env. It seems that Kate can&#39;t find \
anything that is sourced in .kde/env, even if the scripts there are sourced correctly \
by startkde.</div> <span style="color:rgb(46,52,54);font-family:&#39;Open \
Sans&#39;,&#39;Helvetica \
Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:22.399999618530273px;white-space:pre-wrap;background-color:rgb(254,254,254)"><div>
 <span style="color:rgb(46,52,54);font-family:&#39;Open Sans&#39;,&#39;Helvetica \
Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:22.399999618530273px;white-space:pre-wrap;background-color:rgb(254,254,254)"><br>
 </span></div><div><span style="color:rgb(46,52,54);font-family:&#39;Open \
Sans&#39;,&#39;Helvetica \
Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:22.399999618530273px;w \
hite-space:pre-wrap;background-color:rgb(254,254,254)">++++++++++++++++++++++++++++++++++++</span></div>
 Kate Build plugin fails to use environment variables and PATH. If a script setting a \
variable or sourcing some script is put in .kde/env, Kate Build plugin cannot see the \
variables or programs set. 

Example: sourcing the following file 

#!/bin/sh
source /opt/intel/mkl/bin/mklvars.sh intel64
source /opt/intel/composer_xe_2013/bin/compilervars.sh intel64</span><div><span \
style="color:rgb(46,52,54);font-family:&#39;Open Sans&#39;,&#39;Helvetica \
Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:22.399999618530273px;white-space:pre-wrap;background-color:rgb(254,254,254)">export \
PATH=$PATH:/home/tunguska/other_scripts

should enable the intel compiler to be found by make and be used. Kate started from \
the menu can&#39;t see the compiler, but if Kate is started from the terminal with \
that script sourced, it can see the compiler correctly.

Reproducible: Always

Steps to Reproduce:
1. Put a script in ~/.kde/env to be sourced when the session starts.
2. Open Kate, configure the Build plugin to use make.
3. Use &quot;Build&quot; from Kate menu.
Actual Results:  
 make complains it can&#39;t find the executable set in the script.

Expected Results:  
Call the executable (compiler) correctly.</span><br></div><div><span \
style="color:rgb(46,52,54);font-family:&#39;Open Sans&#39;,&#39;Helvetica \
Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:22.399999618530273px;white-space:pre-wrap;background-color:rgb(254,254,254)"><br>
 </span></div><div><span style="color:rgb(46,52,54);font-family:&#39;Open \
Sans&#39;,&#39;Helvetica \
Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:22.399999618530273px;w \
hite-space:pre-wrap;background-color:rgb(254,254,254)">++++++++++++++++++++++</span></div>
 <div><span style="color:rgb(46,52,54);font-family:&#39;Open Sans&#39;,&#39;Helvetica \
Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:22.399999618530273px;white-space:pre-wrap;background-color:rgb(254,254,254)"><br>
 </span></div><div style><span style="color:rgb(46,52,54);font-family:&#39;Open \
Sans&#39;,&#39;Helvetica \
Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:22.399999618530273px;white-space:pre-wrap;background-color:rgb(254,254,254)">Thanks \
for your time,</span></div> <div style><span \
style="color:rgb(46,52,54);font-family:&#39;Open Sans&#39;,&#39;Helvetica \
Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:22.399999618530273px;white-space:pre-wrap;background-color:rgb(254,254,254)"><br>
 </span></div><div style><span style="color:rgb(46,52,54);font-family:&#39;Open \
Sans&#39;,&#39;Helvetica \
Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:22.399999618530273px;white-space:pre-wrap;background-color:rgb(254,254,254)">PS: \
Please cc me as I&#39;m not on the list.</span></div> </div>



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic