Browse Source

Make xdgautostartdir configurable

pull/64/head
matt335672 2 years ago
parent
commit
d37b40dc07
2 changed files with 10 additions and 4 deletions
  1. +10
    -0
      configure.ac
  2. +0
    -4
      instfiles/Makefile.am

+ 10
- 0
configure.ac View File

@ -28,6 +28,9 @@ PA_LIBDIR=`$PKG_CONFIG --variable=libdir libpulse`
PA_MODDIR=`$PKG_CONFIG --variable=modlibexecdir libpulse`
PA_PREFIX=`$PKG_CONFIG --variable=prefix libpulse`
# Default system-wide autostart directory from XDG autostart specification
m4_define([XDG_AUTOSTART_DIR], /etc/xdg/autostart)
AC_SUBST([PA_MAJOR], [pa_major])
AC_SUBST([PA_MINOR], [pa_minor])
AC_SUBST([PA_MAJORMINOR], [pa_major].[pa_minor])
@ -68,6 +71,13 @@ AC_ARG_WITH(
[modlibexecdir=$withval], [modlibexecdir="${PA_MODDIR}"])
AC_SUBST(modlibexecdir)
AC_ARG_WITH(
[xdgautostart-dir],
[AS_HELP_STRING([--with-xdgautostart-dir],
Directory to install the desktop file (defaults to XDG_AUTOSTART_DIR))],
[xdgautostartdir=$withval], [xdgautostartdir=XDG_AUTOSTART_DIR])
AC_SUBST(xdgautostartdir)
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h limits.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h unistd.h])


+ 0
- 4
instfiles/Makefile.am View File

@ -22,10 +22,6 @@ SUFFIXES = .in
#
# files for all platforms
#
# Don't use sysconfdir for this one as it won't work!
xdgautostartdir=/etc/xdg/autostart
xdgautostart_DATA = \
pulseaudio-xrdp.desktop


Loading…
Cancel
Save