[initial-setup] Use anaconda's metacity settings when running metacity
David Shea
dshea at redhat.com
Tue Jan 13 22:07:30 UTC 2015
---
firstboot-windowmanager | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/firstboot-windowmanager b/firstboot-windowmanager
index 39f26b5..ccdd18d 100755
--- a/firstboot-windowmanager
+++ b/firstboot-windowmanager
@@ -1,7 +1,18 @@
#!/bin/sh
# This is the list of supported window manager binaries
-WMS=("metacity" "kwin" "xfwm4" "openbox" "marco")
+WMS=("run_metacity" "kwin" "xfwm4" "openbox" "marco")
+
+run_metacity()
+{
+ # Apply the anaconda overrides before running metacity
+ if [ -z "$XDG_DATA_DIRS" ] ; then
+ new_data_dirs="/usr/share/anaconda/window-manager:/usr/share"
+ else
+ new_data_dirs="/usr/share/anaconda/window-manager:${XDG_DATA_DIRS}"
+ fi
+ XDG_DATA_DIRS="$new_data_dirs" metacity
+}
# Get the application binary to start and remove it from
# the argument list
--
2.1.0
More information about the anaconda-patches
mailing list