Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 335252 Details for
Bug 451454
kde-base/kdelibs-4.9.5: kauth helpers create .kde and .config in /
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
set enviroment variable HOME for kauth helper if not set
kdelibs-4.9.5-kauthhelper.patch (text/plain), 1.01 KB, created by
Михаил
on 2013-01-11 20:54:57 UTC
(
hide
)
Description:
set enviroment variable HOME for kauth helper if not set
Filename:
MIME Type:
Creator:
Михаил
Created:
2013-01-11 20:54:57 UTC
Size:
1.01 KB
patch
obsolete
>diff -Naur kdelibs-4.9.5.org/kdecore/auth/kauthhelpersupport.cpp kdelibs-4.9.5/kdecore/auth/kauthhelpersupport.cpp >--- kdelibs-4.9.5.org/kdecore/auth/kauthhelpersupport.cpp 2012-11-30 11:17:37.000000000 +0400 >+++ kdelibs-4.9.5/kdecore/auth/kauthhelpersupport.cpp 2013-01-08 17:28:56.979989460 +0400 >@@ -22,6 +22,9 @@ > > #include <cstdlib> > #include <syslog.h> >+#include <unistd.h> >+#include <sys/types.h> >+#include <pwd.h> > > #include <QCoreApplication> > #include <QTimer> >@@ -40,8 +43,26 @@ > > static bool remote_dbg = false; > >+static int fixEnviroment(int argc, char **argv) >+{ >+ //try correct HOME >+ char *home = "HOME"; >+ if(getenv(home)==NULL) >+ { >+ struct passwd *pw = getpwuid(getuid()); >+ int overwrite = 0; >+ >+ if(pw!=NULL) >+ setenv(home, pw->pw_dir, overwrite); >+ } >+ >+ return 0; >+} >+ > int HelperSupport::helperMain(int argc, char **argv, const char *id, QObject *responder) > { >+ fixEnviroment(argc, argv); >+ > openlog(id, 0, LOG_USER); > qInstallMsgHandler(&HelperSupport::helperDebugHandler); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 451454
: 335252