[debian-edu-commits] debian-edu/ 11/183: Only generate GNOME path file with profiles, if it will be used

Alexander Alemayhu ccscanf-guest at moszumanska.debian.org
Wed Jun 11 16:48:29 UTC 2014


This is an automated email from the git hooks/post-receive script.

ccscanf-guest pushed a commit to branch master
in repository desktop-profiles.

commit 1e34c4412172d02390869831f839fc00e8837dd2
Author: Bart Cornelis <cobaco at linux.be>
Date:   Mon Oct 18 21:02:29 2004 +0000

    Only generate GNOME path file with profiles, if it will be used
---
 20desktop-profiles_activateDesktopProfiles | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/20desktop-profiles_activateDesktopProfiles b/20desktop-profiles_activateDesktopProfiles
index 52b6e5a..7fe15b2 100644
--- a/20desktop-profiles_activateDesktopProfiles
+++ b/20desktop-profiles_activateDesktopProfiles
@@ -185,4 +185,8 @@ fi;
 # contain a include directive for this generated file. (if the default.listing file in
 # /etc/desktop-profiles is unchanged it should _only_ contain the include directive)
 PROFILE_PATH_FILE="/var/cache/desktop-profiles/${USER}_profiles.path"
-get_profiles GCONF > $PROFILE_PATH_FILE
+# only generate path files for user if it will be included
+if (cat /etc/gconf/2/path | grep '/var/cache/desktop-profiles/\$(USER)_profiles.path' > /dev/null ) ||
+   (cat /etc/gconf/1/path | grep '/var/cache/desktop-profiles/\$(USER)_profiles.path' > /dev/null ) ; then
+  get_profiles GCONF > $PROFILE_PATH_FILE;
+fi;  

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/desktop-profiles.git



More information about the debian-edu-commits mailing list