mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
generic: call KToolInvocation::setLaunchEnv() as static method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ddbaf30d36
commit
ea611115c4
5 changed files with 6 additions and 6 deletions
|
@ -192,7 +192,7 @@ KCMInit::KCMInit( KCmdLineArgs* args )
|
|||
// Pass env. var to klauncher.
|
||||
QString name = "KDE_MULTIHEAD";
|
||||
QString value = multihead ? "true" : "false";
|
||||
KToolInvocation::self()->setLaunchEnv(name, value);
|
||||
KToolInvocation::setLaunchEnv(name, value);
|
||||
setenv( name.toLatin1().constData(), value.toLatin1().constData(), 1 ); // apply effect also to itself
|
||||
|
||||
if( startup )
|
||||
|
|
|
@ -77,9 +77,9 @@ extern "C"
|
|||
// Tell klauncher to set the XCURSOR_THEME and XCURSOR_SIZE environment
|
||||
// variables when launching applications.
|
||||
if(!theme.isEmpty())
|
||||
KToolInvocation::self()->setLaunchEnv("XCURSOR_THEME", theme);
|
||||
KToolInvocation::setLaunchEnv("XCURSOR_THEME", theme);
|
||||
if( !size.isEmpty())
|
||||
KToolInvocation::self()->setLaunchEnv("XCURSOR_SIZE", size);
|
||||
KToolInvocation::setLaunchEnv("XCURSOR_SIZE", size);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -258,7 +258,7 @@ bool ThemePage::applyTheme(const CursorTheme *theme, const int size)
|
|||
QByteArray themeName = QFile::encodeName(theme->name());
|
||||
|
||||
// Set up the proper launch environment for newly started apps
|
||||
KToolInvocation::self()->setLaunchEnv("XCURSOR_THEME", themeName);
|
||||
KToolInvocation::setLaunchEnv("XCURSOR_THEME", themeName);
|
||||
|
||||
// Update the Xcursor X resources
|
||||
runRdb(0);
|
||||
|
|
|
@ -97,7 +97,7 @@ static void applyGtkStyles(bool active, int version)
|
|||
// Pass env. var to klauncher.
|
||||
QString name = gtkEnvVar(version);
|
||||
QString value = list.join(":");
|
||||
KToolInvocation::self()->setLaunchEnv(name, value);
|
||||
KToolInvocation::setLaunchEnv(name, value);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
@ -167,7 +167,7 @@ void KHostName::changeSessionManager()
|
|||
return;
|
||||
}
|
||||
sm = "local/"+newName+sm.mid(i);
|
||||
KToolInvocation::self()->setLaunchEnv(QString::fromLatin1("SESSION_MANAGER"), sm);
|
||||
KToolInvocation::setLaunchEnv(QString::fromLatin1("SESSION_MANAGER"), sm);
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
|
Loading…
Add table
Reference in a new issue