diff --git a/linux/AppRun b/linux/AppRun index 521ffa37..5f26e5e3 100755 --- a/linux/AppRun +++ b/linux/AppRun @@ -9,6 +9,17 @@ else LD_LIBRARY_PATH="$LIBS_PATH:$LD_LIBRARY_PATH" fi +# If this is ChromeOS... +if [[ -f /sys/devices/virtual/dmi/id/product_name ]]; then + if [[ $(cat /sys/devices/virtual/dmi/id/product_name) == "crosvm" ]]; then + # and the program needs to be scaled for a HiDPI display... + if DISPLAY=:1 xset q &>/dev/null; then + # ... do it + export DISPLAY=:1 + fi + fi +fi + export LD_LIBRARY_PATH export SRCDIR=$PWD diff --git a/linux/meson.build b/linux/meson.build index ecf29b78..153e74e6 100644 --- a/linux/meson.build +++ b/linux/meson.build @@ -8,7 +8,7 @@ if get_option('appimage') == true install_data('mkxp-z.png') install_data('mkxp-z.desktop') - meson.add_install_script('make_appimg.sh', meson.project_name() + '.' + host_machine.cpu(), get_option('appimagekit_path'), swarg) + meson.add_install_script('make_appimg.sh', meson.project_name(), get_option('appimagekit_path'), swarg) else if sizeof['long'] == 8 archarg = '64'