Only install the wrapper script to PATH

This commit is contained in:
Aetf 2018-07-24 16:09:23 -04:00
parent baefed44ce
commit d0a7f5cb42
3 changed files with 12 additions and 5 deletions

View File

@ -31,6 +31,7 @@ MANPAGES_ALIASES =
TPHONY = TPHONY =
bin_PROGRAMS = bin_PROGRAMS =
libexec_PROGRAMS =
check_PROGRAMS = check_PROGRAMS =
noinst_PROGRAMS = noinst_PROGRAMS =
lib_LTLIBRARIES = lib_LTLIBRARIES =
@ -476,8 +477,8 @@ mod_pixman_la_LDFLAGS = \
# built as part of kmscon. # built as part of kmscon.
# #
bin_SCRIPTS += docs/kmscon.sh bin_SCRIPTS += scripts/kmscon
bin_PROGRAMS += kmscon libexec_PROGRAMS += kmscon
check_PROGRAMS += \ check_PROGRAMS += \
test_output \ test_output \
test_vt \ test_vt \

View File

@ -791,7 +791,7 @@ fi
# makefiles. # makefiles.
# #
AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([Makefile scripts/kmscon])
AC_OUTPUT AC_OUTPUT
# #

View File

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
# #
# Copyright (c) 2018 Aetf <aetf@unlimitedcodeworks.xyz> # Copyright (c) 2018 Aetf <aetf@unlimitedcodeworks.xyz>
# Copyright (c) 2018 Fabian Vogt <fvogt@suse.com>
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal # of this software and associated documentation files (the "Software"), to deal
@ -20,9 +21,14 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE. # SOFTWARE.
# configuration path
prefix=@prefix@
exec_prefix=@exec_prefix@
libexecdir=@libexecdir@
# Get a property from org.freedesktop.locale1 # Get a property from org.freedesktop.locale1
queryLocale1() { queryLocale1() {
dbus-send --system --print-reply=literal --dest=org.freedesktop.locale1 /org/freedesktop/locale1 org.freedesktop.DBus.Properties.Get "string:org.freedesktop.locale1" "string:$1" | awk '{print $1}' dbus-send --system --print-reply=literal --dest=org.freedesktop.locale1 /org/freedesktop/locale1 org.freedesktop.DBus.Properties.Get "string:org.freedesktop.locale1" "string:$1" | awk '{print $2}'
} }
# Query and setup system locale settings before start kmscon # Query and setup system locale settings before start kmscon
@ -49,4 +55,4 @@ setupLocale() {
} }
setupLocale setupLocale
exec kmscon "$@" exec ${libexecdir}/kmscon "$@"