summaryrefslogtreecommitdiff
path: root/nautilus-installer/src/HACKING
diff options
context:
space:
mode:
Diffstat (limited to 'nautilus-installer/src/HACKING')
-rw-r--r--nautilus-installer/src/HACKING15
1 files changed, 15 insertions, 0 deletions
diff --git a/nautilus-installer/src/HACKING b/nautilus-installer/src/HACKING
index a046ae9de..c982c4a12 100644
--- a/nautilus-installer/src/HACKING
+++ b/nautilus-installer/src/HACKING
@@ -1,3 +1,5 @@
+link.sh will build the statically linked version, plus
+strip gzexe and patch prescript into it.
This command will statically link all the gnome shit into the installer, but leave the rpm, db, z, bz and
generic X crap as shared libs
@@ -21,3 +23,16 @@ gcc -static -o nautilus-installer main.o support.o interface.o callbacks.o inst
-L/usr/lib -lrpm -lz -ldb1 \
/usr/lib/libpopt.a \
-lxml
+
+
+The gzexed file should have skip=22 replaced with
+
+skip=28
+if test $UID -ne 0; then
+ xhost + localhost
+ su - -c "export DISPLAY=$DISPLAY && cd $PWD && sh $0"
+ xhost - localhost
+ exit
+fi
+
+this causes it not to require root access before running