jetbrains.*: fix remote development server

See https://github.com/NixOS/nixpkgs/issues/153335#issuecomment-1859223732 for details
This commit is contained in:
panda2134 2024-01-29 12:20:53 -06:00 committed by Nick Cao
parent 0a436289e1
commit 778c94c57f
No known key found for this signature in database

View File

@ -1,17 +1,20 @@
--- a/plugins/remote-dev-server/bin/launcher.sh
+++ b/plugins/remote-dev-server/bin/launcher.sh
@@ -366,6 +366,8 @@
@@ -322,7 +322,7 @@ fi
# ---------------------------------------------------------------------
# Configure fonts and fontconfig
# ---------------------------------------------------------------------
-if [ $IS_DARWIN -ne 1 ]; then
+if false; then
FONTS_CONFIGURATION_BASE_PATH="$REMOTE_DEV_SERVER_DIR/selfcontained/fontconfig"
if [ ! -d "$FONTS_CONFIGURATION_BASE_PATH" ]; then
echo "ERROR! Unable to locate font configuration source directory in self-contained distribution: '$FONTS_CONFIGURATION_BASE_PATH'." 1>&2
@@ -371,6 +371,8 @@ else
REMOTE_DEV_SERVER_USE_SELF_CONTAINED_LIBS=1
fi
+REMOTE_DEV_SERVER_USE_SELF_CONTAINED_LIBS=0
+
if [ $REMOTE_DEV_SERVER_USE_SELF_CONTAINED_LIBS -eq 1 ]; then
SELFCONTAINED_LIBS="$REMOTE_DEV_SERVER_DIR/selfcontained/lib"
if [ ! -d "$SELFCONTAINED_LIBS" ]; then
@@ -596,3 +598,5 @@
"$LAUNCHER" "$STARTER_COMMAND" "$PROJECT_PATH" "$@"
;;
esac
+
+unset REMOTE_DEV_SERVER_USE_SELF_CONTAINED_LIBS