mirror of
git://slackware.nl/current.git
synced 2025-01-15 15:41:54 +01:00
9664bee729
Wed Sep 26 01:10:42 UTC 2012 Slackware 14.0 x86_64 stable is released! We're perfectionists here at Slackware, so this release has been a long time a-brewing. But we think you'll agree that it was worth the wait. Slackware 14.0 combines modern components, ease of use, and flexible configuration... our "KISS" philosophy demands it. The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware project by picking up a copy from store.slackware.com. We're taking pre-orders now, and offer a discount if you sign up for a subscription. Thanks to everyone who helped make this happen. The Slackware team, the upstream developers, and (of course) the awesome Slackware user community. Have fun! :-)
22 lines
564 B
Diff
22 lines
564 B
Diff
Set HOME environment variable when switching user.
|
|
|
|
2011-08-05 Egor Y. Egorov
|
|
|
|
References:
|
|
https://bugs.freedesktop.org/show_bug.cgi?id=39857
|
|
https://bugs.kde.org/show_bug.cgi?id=249217#c27
|
|
|
|
diff --git a/bus/activation-helper.c b/bus/activation-helper.c
|
|
index baba8f0..b75ea7c 100644
|
|
--- a/bus/activation-helper.c
|
|
+++ b/bus/activation-helper.c
|
|
@@ -344,6 +344,8 @@ switch_user (char *user, DBusError *error)
|
|
"cannot setuid user %i", pw->pw_uid);
|
|
return FALSE;
|
|
}
|
|
+
|
|
+ _dbus_setenv ("HOME", pw->pw_dir);
|
|
#endif
|
|
return TRUE;
|
|
}
|
|
|