From 7bf7bb730a4d9de53419a581fbc2bcaeee5dd331 Mon Sep 17 00:00:00 2001 From: Alexey Ushakov Date: Tue, 6 Jun 2017 13:13:28 +0300 Subject: [PATCH] IDEA-173836 After upgrade to Ubuntu 17.04 integrated menus do not work Forced jayatana for Unity DE via env variable --- bin/scripts/unix/idea.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bin/scripts/unix/idea.sh b/bin/scripts/unix/idea.sh index 7df94672fb65..08811358451a 100755 --- a/bin/scripts/unix/idea.sh +++ b/bin/scripts/unix/idea.sh @@ -147,6 +147,17 @@ BITS=$? "$RM" -f "$VERSION_LOG" test ${BITS} -eq 0 && BITS="64" || BITS="" +#---------------------------------------------------------------------- +# Set platform enviroment variables for IDE +#---------------------------------------------------------------------- +if [ "$OS_TYPE" = "Linux" ] ; then + case "$XDG_CURRENT_DESKTOP" in + *Unity*) + export JAYATANA_FORCE=true + ;; + esac +fi + # --------------------------------------------------------------------- # Collect JVM options and IDE properties. # ---------------------------------------------------------------------