summaryrefslogtreecommitdiff
path: root/libre/java-common/install_java-runtime-common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'libre/java-common/install_java-runtime-common.sh')
-rw-r--r--libre/java-common/install_java-runtime-common.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/libre/java-common/install_java-runtime-common.sh b/libre/java-common/install_java-runtime-common.sh
index 0c9ae502e..9aebc7502 100644
--- a/libre/java-common/install_java-runtime-common.sh
+++ b/libre/java-common/install_java-runtime-common.sh
@@ -1,3 +1,10 @@
+pre_upgrade() {
+ if grep -q '^export _JAVA_AWT_WM_NONREPARENTING=1' /etc/profile.d/jre.sh > /dev/null 2>&1; then
+ echo "Variable '_JAVA_AWT_WM_NONREPARENTING' should not be set in /etc/profile.d/jre.sh any more"
+ echo "Please declare it in ~/.xinitrc or such"
+ fi
+}
+
post_install() {
echo 'For the complete set of Java binaries to be available in your PATH,'
echo 'you need to re-login or source /etc/profile.d/jre.sh'