AWS appstream2 documentation change
Summary
Fixed typo in command syntax and added environment variable gathering script for Japanese input support in AppStream
Security assessment
This change fixes a typo in a command (removing extra asterisk) and adds a script to gather environment variables for Japanese input support. There is no security context in these changes - they are purely functional/documentation corrections for localization features.
Diff
diff --git a/appstream2/latest/developerguide/enable-japanese-support-linux.md b/appstream2/latest/developerguide/enable-japanese-support-linux.md index e7bec4262..b38954dd2 100644 --- a//appstream2/latest/developerguide/enable-japanese-support-linux.md +++ b//appstream2/latest/developerguide/enable-japanese-support-linux.md @@ -119 +119 @@ In the script above, the first input source (‘ibus’, ‘kkc’) is the defau - 2. Create the script for launching the application (Firefox) that you will add to the image. To do this, run the command s**udo vim /usr/local/bin/firefox-jp.sh** , then add following content to the script: + 2. Create the script for launching the application (Firefox) that you will add to the image. To do this, run the command **sudo vim /usr/local/bin/firefox-jp.sh** , then add the following content to the script: @@ -122,0 +123,14 @@ In the script above, the first input source (‘ibus’, ‘kkc’) is the defau + # Gather required environment variables from the GNOME shell session + while IFS= read -r -d $'\0' env_var; do + case "$env_var" in + DBUS_SESSION_BUS_ADDRESS=*|\ + GTK_IM_MODULE=*|\ + QT_IM_MODULE=*|\ + XMODIFIERS=*|\ + XAUTHORITY=*) + echo "$env_var" + export "$env_var" + ;; + esac + done < "/proc/$(pgrep -u as2-streaming-user gnome-shell | head -n1)/environ" +