This repository has been archived by the owner on Feb 27, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lightdm-ubuntu] Fix dconf failure due to unwritable directories
- Loading branch information
Xiao-Long Chen
committed
Apr 13, 2014
1 parent
fd1edf4
commit 4d5ecc6
Showing
4 changed files
with
57 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
lightdm-ubuntu/0002-guest-account-Add-default-GSettings-support.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
From 3de0924902388870f4a9ac1e3bda625e23a78a83 Mon Sep 17 00:00:00 2001 | ||
From: Xiao-Long Chen <chenxiaolong@cxl.epac.to> | ||
Date: Sun, 13 Apr 2014 01:02:42 -0400 | ||
Subject: [PATCH 2/2] guest-account: Add default GSettings support | ||
|
||
--- | ||
debian/guest-account | 10 ++++++++++ | ||
1 file changed, 10 insertions(+) | ||
|
||
diff --git a/debian/guest-account b/debian/guest-account | ||
index 77312ba..fadec17 100644 | ||
--- a/debian/guest-account | ||
+++ b/debian/guest-account | ||
@@ -121,6 +121,16 @@ add_account () | ||
. /etc/guest-session/prefs.sh | ||
fi | ||
|
||
+ # Load default dconf settings | ||
+ mkdir -p "$HOME/.config/" "$HOME/.cache/" | ||
+ chown -R $USER:$USER "$HOME/.config/" "$HOME/.cache/" | ||
+ if [ -d /etc/guest-session/gsettings/ ]; then | ||
+ for i in /etc/guest-session/gsettings/*; do | ||
+ cat "${i}" | sed '/^\[.*\]$/ s/\./\//g' | \ | ||
+ su - $USER -c 'dbus-launch dconf load /' | ||
+ done | ||
+ fi | ||
+ | ||
chown -R $USER:$USER "$HOME" | ||
|
||
echo $USER | ||
-- | ||
1.9.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
lightdm-ubuntu/guest-session-add-default-gsettings-support.patch
This file was deleted.
Oops, something went wrong.