ximspath.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  6. * These libraries and programs are free software; you can
  7. * redistribute them and/or modify them under the terms of the GNU
  8. * Lesser General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * These libraries and programs are distributed in the hope that
  13. * they will be useful, but WITHOUT ANY WARRANTY; without even the
  14. * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. * PURPOSE. See the GNU Lesser General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these libraries and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /* @(#)$XConsortium: ximspath.h /main/3 1996/05/07 14:03:38 drk $ */
  24. #ifndef _XIMSPATH_H_
  25. #define _XIMSPATH_H_
  26. #include <sys/param.h>
  27. #ifndef MAXPATHLEN
  28. #define MAXPATHLEN 1024
  29. #endif
  30. /* dtimsstart */
  31. /* command */
  32. #define DTIMS_PROGNAME "dtimsstart"
  33. #define DTIMS_CLASS "Dtimsstart"
  34. /* atom for properties */
  35. #define DTIMS_ATOM_MAIN "_DTIMSSTART_MAIN"
  36. #define DTIMS_ATOM_STATUS "_DTIMSSTART_STATUS"
  37. #define DTIMS_ATOM_DATA "_DTIMSSTART_DATA"
  38. /* environment */
  39. #define ENV_DTIMS_STARTCONF "DTIMS_STARTCONF"
  40. #define ENV_NO_DTIMSSTART "NODTIMSSTART"
  41. #define ENV_XFILESEARCHPATH "XFILESEARCHPATH"
  42. #define ENV_XFILESEARCHPATH_STRING \
  43. "/etc/dt/app-defaults/%L/%N:/etc/dt/app-defaults/C/%N:/usr/dt/app-defaults/%L/%N:/usr/dt/app-defaults/C/%N"
  44. #define ENV_NLSPATH "NLSPATH"
  45. #define ENV_NLSPATH_STRING \
  46. "/usr/dt/lib/nls/msg/%L/%N.cat:/usr/dt/lib/nls/msg/C/%N.cat"
  47. /* configuration */
  48. #define DTIMS_CONFDIR "/usr/dt/config/ims"
  49. #define DTIMS_APPDIR "/usr/dt/app-defaults"
  50. #define DTIMS_CONFFILE "start.conf"
  51. /* path of executable (used for remote execution) */
  52. #define DTIMS_CMDPATH "/usr/dt/bin/dtimsstart"
  53. /* user dir */
  54. #define DTIMS_IMSDIR "ims" /* [%b] */
  55. #define DTIMS_LOGDIR "/var/dt" /* [%G] */
  56. #define DTIMS_LOGFILE "imslog" /* [%g] */
  57. /* user dir */
  58. #define DTIMS_USRIMSDIR "%U/ims" /* [%S] $HOME/.dt/ims/ */
  59. #define DTIMS_USRTMPDIR "%U/tmp" /* [%T] $HOME/.dt/tmp/ */
  60. #define DTIMS_USRALTDIR "/var/tmp" /* [%A] */
  61. #define DEFAULT_LOGPATH "%S/%g" /* $HOME/.dt/ims/imslog */
  62. #define ALT_LOGPATH "%A/%g.%u" /* /var/tmp/imslog.$USER */
  63. #define MAX_LOGSIZE (20 * 1024) /* 20 KB */
  64. /* Actions */
  65. #define NAME_ACT_GETREMCONF "DtImsGetRemoteConf"
  66. #define NAME_ACT_RUNREMIMS "DtImsRunRemoteIms"
  67. /* IMS */
  68. /* environment */
  69. #define ENV_XMODIFIERS "XMODIFIERS"
  70. #define ENV_DISPLAY "DISPLAY"
  71. #define ENV_LANG "LANG"
  72. #define ENV_MOD_IM "@im="
  73. /* format of XMODFIERS=@im */
  74. #define IM_XMOD_XIM "%n"
  75. #define IM_XMOD_XIMP "_XIMP_%L#%n.%s"
  76. #define IM_XMOD_XSI "_XIM_INPUTMETHOD"
  77. /* protocol atom name */
  78. #define IM_ATOM_XIM "@server=%N"
  79. #define IM_ATOM_XIMP "_XIMP_%L@%n.%s"
  80. #define IM_ATOM_XSI "_XIM_INPUTMETHOD"
  81. /* command path */
  82. #define SH_PATH "/usr/bin/sh"
  83. #define CAT_PATH "/usr/bin/cat"
  84. #define XRDB_PATH "/usr/bin/X11/xrdb"
  85. #define DTSESSION_RES_PATH "/usr/dt/bin/dtsession_res"
  86. /* DT dirs */
  87. #define DT_CONFDIR "/usr/dt/config"
  88. #define DT_USERDIR "%H/.dt"
  89. #endif /* _XIMSPATH_H_ */