ArcticaProject / nx-libs

nx-libs
Other
120 stars 39 forks source link

Auto-adjust path to SecurityPolicy #988

Closed uli42 closed 3 years ago

uli42 commented 3 years ago

nx-X11/programs/Xserver/Xext/security.c:

#ifdef NXAGENT_SERVER

#define NX_ALTERNATIVEPOLICYFILE "/usr/local/share/nx/SecurityPolicy"

#endif

Should be adjusted at compile time. On Debian we install it to /usr/share/nx which is available as USRDATADIR in the Makefile.

We are always shipping an own SecurityPolicy file anyway so why have an alternative path at all? Simply correct DEFAULTPOLICYFILE path and be fine.