[X2Go-Commits] [nx-libs] 04/19: Extend 999_nxagent_unbrand-nxagent-brand-x2goagent.full.patch. Let rgb file shipped with x2goagent supersede rgb file shipped with nxagent. FIXME: a better approach would be to decide at runtime if to use /etc/x2go/rgb or /etc/nxagent/rgb.

git-admin at x2go.org git-admin at x2go.org
Wed Jan 28 19:43:11 CET 2015


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

x2go pushed a commit to branch master
in repository nx-libs.

commit fc2dcc9c3092e8cc5f0b32716d5efe535d2c4f12
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed Jan 28 11:28:38 2015 +0100

    Extend 999_nxagent_unbrand-nxagent-brand-x2goagent.full.patch. Let rgb file shipped with x2goagent supersede rgb file shipped with nxagent. FIXME: a better approach would be to decide at runtime if to use /etc/x2go/rgb or /etc/nxagent/rgb.
---
 debian/changelog                                   |    4 ++++
 ...gent_unbrand-nxagent-brand-x2goagent.full.patch |   23 ++++++++++++++++++++
 2 files changed, 27 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index a8cb9d8..2883c3e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -42,6 +42,10 @@ nx-libs (2:3.5.0.29-0x2go2) UNRELEASED; urgency=medium
       far). (The debian/rules file is a Makefile and Makefiles don't understand
       shell globbing with curly braces).
   * Modify 101_nxagent_set-rgb-path.full.patch. Allow configurable rgb files.
+  * Extend 999_nxagent_unbrand-nxagent-brand-x2goagent.full.patch. Let rgb
+    file shipped with x2goagent supersede rgb file shipped with nxagent.
+    FIXME: a better approach would be to decide at runtime if to use
+    /etc/x2go/rgb or /etc/nxagent/rgb.
 
   [ Horst Schirmeier ]
   * Update 320_nxagent_configurable-keystrokes.full.patch. Fix a typo that
diff --git a/debian/patches/999_nxagent_unbrand-nxagent-brand-x2goagent.full.patch b/debian/patches/999_nxagent_unbrand-nxagent-brand-x2goagent.full.patch
index 4b18aa5..db59976 100644
--- a/debian/patches/999_nxagent_unbrand-nxagent-brand-x2goagent.full.patch
+++ b/debian/patches/999_nxagent_unbrand-nxagent-brand-x2goagent.full.patch
@@ -294,3 +294,26 @@ Last-Update: 2012-01-11
  
  extern Window nxagentSplashWindow;
  
+--- a/nx-X11/programs/Xserver/os/oscolor.c
++++ b/nx-X11/programs/Xserver/os/oscolor.c
+@@ -53,7 +53,19 @@
+ #include <sys/stat.h>
+ #include <unistd.h>
+ 
+-static char* nxAltRgbPaths[] = {"/etc/nxagent/rgb", "/usr/share/nx/rgb", "/usr/local/share/nx/rgb", "/usr/NX/share/rgb", "/usr/share/X11/rgb", "/etc/X11/rgb"};
++/* FIXME: we need more intelligent code (like provided by the nxagentX2go
++ * var in hw/nxagent/Init.h) to detect our current runtime mode (running
++ * as x2goagent, running as nxagent)
++ */
++static char* nxAltRgbPaths[] = {"/etc/x2go/rgb", \
++                                "/usr/share/x2go/rgb", \
++                                "/usr/local/share/x2go/rgb", \
++                                "/etc/nxagent/rgb", \
++                                "/usr/share/nx/rgb", \
++                                "/usr/local/share/nx/rgb", \
++                                "/usr/NX/share/rgb", \
++                                "/usr/share/X11/rgb", \
++                                "/etc/X11/rgb"};
+ static char _NXRgbPath[1024];
+ 
+ #endif

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/nx-libs.git


More information about the x2go-commits mailing list