Skip to content

Commit

Permalink
If there is no X, skip the xrdp-genkeymap command.
Browse files Browse the repository at this point in the history
  • Loading branch information
chaeya committed Aug 9, 2024
1 parent 3f77e44 commit b27a5ff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 21 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
xrdp (0.10.0-1hamonikr6) stable; urgency=medium

* If there is no X, skip the xrdp-genkeymap command.

-- HamoniKR <[email protected]> Fri, 09 Aug 2024 10:18:55 +0900

xrdp (0.10.0-1hamonikr5) stable; urgency=medium

* Release for paektu arm64
Expand Down
26 changes: 5 additions & 21 deletions debian/xrdp.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,6 @@

set -e

# This maintainer script can be called the following ways:
#
# * new-postinst "configure" [$most_recently_configured_version]
# The package is unpacked; all dependencies are unpacked and, when there
# are no circular dependencies, configured.
#
# * old-postinst "abort-upgrade" $new_version
# * old-postinst "abort-remove"
# * conflictors-postinst "abort-remove" "in-favour" $new_package
# $new_version
# * deconfigureds-postinst "abort-deconfigure" "in-favour"
# $failed_install_package $fip_version # new-package
# ["removing" $conflicting_package $cp_version] # old-package
# The package is unpacked; all dependencies are at least Half-Installed,
# previously been configured, and not removed. In some error situations,
# dependencies may not be even fully unpacked.
#
# * postinst "triggered" "${triggers[*]}"
# For trigger-only calls, i.e. if "configure" is not called.

case $1 in
configure)
getent passwd xrdp >/dev/null 2>&1 || adduser \
Expand Down Expand Up @@ -53,7 +33,11 @@ configure)
adduser xrdp ssl-cert
)

test -e /etc/xrdp/km-e0010412.ini || xrdp-genkeymap /etc/xrdp/km-e0010412.ini
if [ -n "$DISPLAY" ]; then
test -e /etc/xrdp/km-e0010412.ini || xrdp-genkeymap /etc/xrdp/km-e0010412.ini
else
echo "Skipping xrdp-genkeymap as no DISPLAY is set."
fi

;;

Expand Down

0 comments on commit b27a5ff

Please sign in to comment.