summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Klumpp <matthias@nlinux.org>2010-11-16 16:39:50 +0100
committerMatthias Klumpp <matthias@nlinux.org>2010-11-16 16:39:50 +0100
commit7be09afbb69621aabcb9d390ea403ea397d025c7 (patch)
treec2e76da26fa7be9fc01ff958ecb40d232e6b2fe7
parent589eab2986a18fbbfcc6ad18e5fa5e1bf878b14a (diff)
trivial: Select KDE Debconf frontend if KDE is running
This has no effect on the Debconf process at time, since the official Debconf-KDE frontend is not yet finished. If dialog frontend is "kde", but the frontend was not found, Debconf will automatically fallback to "gnome" or "dialog". This patch also adds a few more temp files which are left by the APTcc backend to the gitignore list.
-rw-r--r--.gitignore6
-rw-r--r--lib/packagekit-glib2/pk-client.c5
2 files changed, 9 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 65250a6c5..d56ce361f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -63,4 +63,8 @@ packagekit.types
ChangeLog
.deps
.acb
-
+*.la
+*.lo
+*.o
+*.lai
+*.so
diff --git a/lib/packagekit-glib2/pk-client.c b/lib/packagekit-glib2/pk-client.c
index 92d1c7427..f5a870646 100644
--- a/lib/packagekit-glib2/pk-client.c
+++ b/lib/packagekit-glib2/pk-client.c
@@ -1861,7 +1861,10 @@ pk_client_create_helper_socket (PkClientState *state)
display = g_getenv ("DISPLAY");
if (display != NULL) {
envp[envpi++] = g_strdup_printf ("DISPLAY=%s", display);
- dialog = "gnome";
+ if (g_strcmp0 (g_getenv ("KDE_FULL_SESSION"), "true") == 0)
+ dialog = "kde";
+ else
+ dialog = "gnome";
}
/* indicate a prefered frontend */