<div dir="ltr">FYI, meant to CC here... double-check pls<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Kurt Hindenburg</b> <span dir="ltr"><<a href="mailto:kurt.hindenburg@gmail.com">kurt.hindenburg@gmail.com</a>></span><br>
Date: Wed, Aug 13, 2008 at 11:56 PM<br>Subject: KDE/kdebase/apps/konsole/src<br>To: <a href="mailto:kde-commits@kde.org">kde-commits@kde.org</a><br><br><br>SVN commit 846759 by hindenburg:<br>
<br>
Change getenv to qgetenv for portable (ebn krazy)<br>
<br>
M +2 -2 Profile.cpp<br>
M +2 -2 Session.cpp<br>
M +1 -1 SessionController.cpp<br>
M +1 -1 ShellCommand.cpp<br>
M +1 -1 kwrited.cpp<br>
<br>
<br>
--- trunk/KDE/kdebase/apps/konsole/src/Profile.cpp #846758:846759<br>
@@ -144,9 +144,9 @@<br>
// magic path for the fallback profile which is not a valid<br>
// non-directory file name<br>
setProperty(Path,"FALLBACK/");<br>
- setProperty(Command,getenv("SHELL"));<br>
+ setProperty(Command,qgetenv("SHELL"));<br>
setProperty(Icon,"utilities-terminal");<br>
- setProperty(Arguments,QStringList() << getenv("SHELL"));<br>
+ setProperty(Arguments,QStringList() << qgetenv("SHELL"));<br>
setProperty(Environment,QStringList() << "TERM=xterm");<br>
setProperty(LocalTabTitleFormat,"%d : %n");<br>
setProperty(RemoteTabTitleFormat,"%H (%u)");<br>
--- trunk/KDE/kdebase/apps/konsole/src/Session.cpp #846758:846759<br>
@@ -287,7 +287,7 @@<br>
// if 'exec' is not specified, fall back to default shell. if that<br>
// is not set then fall back to /bin/sh<br>
if ( exec.isEmpty() )<br>
- exec = getenv("SHELL");<br>
+ exec = qgetenv("SHELL");<br>
if ( exec.isEmpty() )<br>
exec = "/bin/sh";<br>
<br>
@@ -327,7 +327,7 @@<br>
kDebug() << "Session::run() - no command line arguments specified.";<br>
<br>
const int CHOICE_COUNT = 3;<br>
- QString programs[CHOICE_COUNT] = {_program,getenv("SHELL"),"/bin/sh"};<br>
+ QString programs[CHOICE_COUNT] = {_program,qgetenv("SHELL"),"/bin/sh"};<br>
QString exec;<br>
int choice = 0;<br>
while (choice < CHOICE_COUNT)<br>
--- trunk/KDE/kdebase/apps/konsole/src/SessionController.cpp #846758:846759<br>
@@ -703,7 +703,7 @@<br>
// hard coded for now. In future make it possible for the user to specify which programs<br>
// are ignored when considering whether to display a confirmation<br>
QStringList ignoreList;<br>
- ignoreList << QString(getenv("SHELL")).section('/',-1);<br>
+ ignoreList << QString(qgetenv("SHELL")).section('/',-1);<br>
if (ignoreList.contains(title))<br>
return true;<br>
<br>
--- trunk/KDE/kdebase/apps/konsole/src/ShellCommand.cpp #846758:846759<br>
@@ -158,7 +158,7 @@<br>
int len = pos2 - pos;<br>
QString key = text.mid( pos+1, len-1);<br>
QString value =<br>
- QString::fromLocal8Bit( ::getenv(key.toLocal8Bit()) );<br>
+ QString::fromLocal8Bit( qgetenv(key.toLocal8Bit()) );<br>
<br>
if ( !value.isEmpty() ) {<br>
expanded = true;<br>
--- trunk/KDE/kdebase/apps/konsole/src/kwrited.cpp #846758:846759<br>
@@ -85,7 +85,7 @@<br>
<br>
pty = new KPty();<br>
pty->open();<br>
- pty->login(KUser().loginName().toLocal8Bit().data(), getenv("DISPLAY"));<br>
+ pty->login(KUser().loginName().toLocal8Bit().data(), qgetenv("DISPLAY"));<br>
QSocketNotifier *sn = new QSocketNotifier(pty->masterFd(), QSocketNotifier::Read, this);<br>
connect(sn, SIGNAL(activated(int)), this, SLOT(block_in(int)));<br>
<br>
</div><br></div>