Commit 43c04dbf authored by Mike Gabriel's avatar Mike Gabriel

Rework FreeNX patches to be applicable to latest NX sources.

parent 9f226601
......@@ -21,6 +21,7 @@ nx-libs (2:3.5.0-0~x2go2) UNRELEASED; urgency=low
- 200_nxagent_unbrand-agent.patch
* Adapt path names in FreeNX patches to meet requirements for source tree of this
package.
* Rework FreeNX patches to be applicable to latest NX sources.
-- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Wed, 28 Dec 2011 19:06:26 +0100
......
......@@ -18,9 +18,9 @@
--- a/nx-X11/programs/Xserver/hw/nxagent/Error.h
+++ b/nx-X11/programs/Xserver/hw/nxagent/Error.h
@@ -34,4 +34,6 @@
void nxagentEndRedirectToClientsLog(void);
+char *nxagentGetSessionPath(void);
+
#endif /* __Error_H__ */
......@@ -34,7 +34,7 @@
#include "NXlib.h"
@@ -1770,6 +1771,42 @@
@@ -1790,6 +1791,42 @@
}
#endif
......
......@@ -15,7 +15,7 @@
/*
* This is currently unused.
*/
@@ -1640,6 +1648,17 @@
@@ -1858,6 +1866,17 @@
nxagentAddConfiguredWindow(pWin, CWStackingOrder);
nxagentAddConfiguredWindow(pWin, CW_Shape);
......@@ -33,7 +33,7 @@
#ifdef SHAPE
/*
@@ -1686,6 +1705,17 @@
@@ -1904,6 +1923,17 @@
return True;
}
......
......@@ -10,7 +10,7 @@
/*
* Set here the required log level.
*/
@@ -339,6 +342,20 @@
@@ -348,6 +351,20 @@
*/
blackRoot = TRUE;
......
--- a/nx-X11/programs/Xserver/hw/nxagent/Screen.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
@@ -1539,7 +1539,20 @@
@@ -1754,7 +1754,20 @@
#ifdef TEST
fprintf(stderr, "nxagentOpenScreen: Created new default window with id [%ld].\n",
nxagentDefaultWindows[pScreen->myNum]);
......@@ -32,17 +32,6 @@
#define nxagentSetPrintGeometry(screen) \
nxagentPrintGeometryFlags = (1 << (screen));
--- a/nx-X11/programs/Xserver/hw/nxagent/Display.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Display.c
@@ -1861,7 +1861,7 @@
strncpy(default_path, "", 255);
strcat(icon_filename, NXAGENT_ICON_NAME);
- strcat(default_path,"/usr/NX/share/images/");
+ strcat(default_path,"/usr/share/pixmaps/");
strcat(default_path,icon_filename);
if ((icon_fp = fopen(default_path, "r")) == NULL)
--- a/nx-X11/programs/Xserver/hw/nxagent/Splash.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Splash.c
@@ -204,6 +204,7 @@
......@@ -53,3 +42,14 @@
if (!nxagentPixmapLogo)
{
return;
--- a/nx-X11/programs/Xserver/hw/nxagent/Display.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Display.c
@@ -1919,7 +1919,7 @@
XlibPixmap IconPixmap;
XlibPixmap IconShape;
- snprintf(default_path, PATH_MAX-1, "/usr/NX/share/images/%s", NXAGENT_ICON_NAME);
+ snprintf(default_path, PATH_MAX-1, "/usr/share/pixmaps/%s", NXAGENT_ICON_NAME);
if ((icon_fp = fopen(default_path, "r")) == NULL)
{
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment