mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
kinit: new method for dumping the system environment
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
f82af797c3
commit
34d87abfd8
2 changed files with 15 additions and 1 deletions
|
@ -198,7 +198,7 @@ int KLauncherAdaptor::kdeinit_exec_with_workdir(const QString &app, const QStrin
|
|||
}
|
||||
process->setProcessEnvironment(processenv);
|
||||
process->setWorkingDirectory(workdir);
|
||||
kDebug() << "starting" << appexe << args << env << processenv.toStringList();
|
||||
kDebug() << "starting" << appexe << args << env;
|
||||
// either start_service_by_desktop_path() or this method send ASN
|
||||
if (!startup_id.isEmpty()) {
|
||||
Q_ASSERT(m_kstartupinfoid.none() == true);
|
||||
|
@ -359,6 +359,13 @@ int KLauncherAdaptor::start_service_by_desktop_path(const QString &serviceName,
|
|||
return result;
|
||||
}
|
||||
|
||||
#ifdef KLAUNCHER_DEBUG
|
||||
QStringList KLauncherAdaptor::environment() const
|
||||
{
|
||||
return m_environment.toStringList();
|
||||
}
|
||||
#endif
|
||||
|
||||
void KLauncherAdaptor::slotProcessStateChanged(QProcess::ProcessState state)
|
||||
{
|
||||
QProcess* process = qobject_cast<QProcess*>(sender());
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
#include <QDBusConnectionInterface>
|
||||
#include <QProcess>
|
||||
|
||||
// #define KLAUNCHER_DEBUG
|
||||
|
||||
// Adaptor class for interface org.kde.KLauncher
|
||||
class KLauncherAdaptor: public QDBusAbstractAdaptor
|
||||
{
|
||||
|
@ -60,6 +62,11 @@ public Q_SLOTS:
|
|||
int start_service_by_desktop_name(const QString &serviceName, const QStringList &urls, const QStringList &envs, const QString &startup_id, bool blind, const QDBusMessage &msg, QString &dbusServiceName, QString &error, qint64 &pid);
|
||||
int start_service_by_desktop_path(const QString &serviceName, const QStringList &urls, const QStringList &envs, const QString &startup_id, bool blind, const QDBusMessage &msg, QString &dbusServiceName, QString &error, qint64 &pid);
|
||||
|
||||
// for debugging
|
||||
#ifdef KLAUNCHER_DEBUG
|
||||
QStringList environment() const;
|
||||
#endif
|
||||
|
||||
Q_SIGNALS:
|
||||
void autoStart0Done();
|
||||
void autoStart1Done();
|
||||
|
|
Loading…
Add table
Reference in a new issue