-
Openbox-LXDE notification problem: message color unreadable
Hallo,
I succeeded to start Knoppix with Openbox-LXDE window manager instead of Metacity. I wanted this because I am not satisfied with Compiz, nor Metacity. Bugs, high resource-usage, they does not support the effective work. But Openbox-LXDE is very fast, highly customizable, lightweight and just works. In one word: it is wonderful! ![Razz](images/smilies/icon_razz.gif)
How I achieved this:
First, you have to appply "nocompiz" and "kopik_ncwm" cheatcodes.
Then edit /etc/X11/Xsession.d/45knoppix file.
Code:
# kopik.m: use openbox-lxde instead of metacity with "kopik_ncwm" cheatcode
kopik_ncwm=metacity
case "$CMDLINE" in *\ kopik_ncwm*) kopik_ncwm=openbox-lxde;; esac
for LXDECONFIG in "$HOME/.config/lxsession/LXDE/config" "$HOME/.config/lxsession/LXDE/desktop.conf"; do
[ -r "$LXDECONFIG" ] || continue
if [ -n "$COMPIZ" ]; then
if grep -q -v '^window_manager *= *compiz' "$LXDECONFIG" 2>/dev/null; then
# CAUTION: lxsession no longer supports commandline optione for window_manager!
sed -i -e 's|^window_manager *=.*|window_manager=compiz|g' "$LXDECONFIG"
fi
else
if grep -q '^window_manager *= *compiz' "$LXDECONFIG" 2>/dev/null; then
sed -i -e 's|^window_manager *= *compiz.*|window_manager='"$kopik_ncwm"'|g' "$LXDECONFIG"
fi
fi
done
As you can see, one still can use Metacity by not applying "kopik_ncwm" boot option.
Unfortunately, nothing is perfect: now there is an annoying problem: if Knoppix starts with Openbox-LXDE window manager, the notifications are invisible: maybe with black fonts in a very dark background. So, they are totally unreadable. But if I apply "-t 0" option, the text is still visible.
Code:
$ notify-send test -t 0
The bug is like described in the following page:
Notification message colour unreadable with "GNOME Classic" session
So, the problem is related somehow to the Openbox-LXDE session, but I do not understand how. Anyone has idea how to resolve this issue?
-
Clarifications: Not only Openbox-LXDE, but also Metacity wm is affected. It is a mystery for me why with Compiz window manager the notifications are OK...
Knoppix version: 8.6.0. But I am sure that the latest Knoppix version (8.6.1) has the same notification problem since notify-osd is the same version: 0.9.35+15.04.20150126-1+b1. So, not the notify-send is the problem, but notify-osd daemon.
I think this problem cannot be resolved because notify-osd is unconfigurable. I use this workaround:
* use notify-send always with "-t 0" option or zenity, xmessage instead of notify-send in scripts
* switch off notifications of applications to get rid of annoying black boxes
I run this script after X-start to disable notifications:
Code:
#!/bin/sh
################################################################################
# gsettings v2020.02.12
# (C) SZILÁGYI Zsolt; License: GPL V2
# Knoppix 8.6.0: notify-osd bug: LXDE, openbox-lxde and metacity: unreadable
# messages. Use notify send with "-t 0" or zenity (xmessage) for your scripts.
# This script disable messages of nm-applet and gnome-mplayer (and more...).
# Edit the script to add more applications. Execute in GUI.
################################################################################
type gsettings >/dev/null 2>&1 || exit
test "$DISPLAY" || exit
if type nm-applet >/dev/null 2>&1; then
for i in disable-disconnected-notifications disable-vpn-notifications \
disable-connected-notifications suppress-wireless-networks-available; do
gsettings list-keys org.gnome.nm-applet | grep -q "$i" &&
test $(gsettings get org.gnome.nm-applet "$i") = false &&
gsettings set org.gnome.nm-applet "$i" true
done
fi
if type gnome-mplayer >/dev/null 2>&1; then
for i in show-status-icon show-notification; do
gsettings list-keys apps.gnome-mplayer.preferences | grep -q "$i" &&
test $(gsettings get apps.gnome-mplayer.preferences "$i") = true &&
gsettings set apps.gnome-mplayer.preferences "$i" false
done
gsettings list-keys apps.gnome-mplayer.preferences | \
grep -q disable-cover-art-fetch &&
test $(gsettings get apps.gnome-mplayer.preferences disable-cover-art-fetch) \
= false &&
gsettings set apps.gnome-mplayer.preferences disable-cover-art-fetch true
gsettings list-keys apps.gnome-mplayer.preferences | grep -q resume-mode &&
test $(gsettings get apps.gnome-mplayer.preferences resume-mode) -eq 0 &&
gsettings set apps.gnome-mplayer.preferences resume-mode 1
fi
exit
Start it with /etc/xdg/autostart/gsettings.desktop
Code:
[Desktop Entry]
Name=GSettings
Exec=/.../.../gsettings
Terminal=false
Type=Application
Currently I do not use persistence, so I do not know if the script must be run at every start (/etc/xdg/autostart/gsettings.desktop) in that case.
Last edited by szzsqing1; 02-12-2020 at 04:32 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram Dual 256GB SSD K420 Linux GA picture](/store/img/g/rIQAAOSwN9Nlnw4a/s-l225/HP-Workstation-Z640-2x-Xeon-E5-2623V4-32GB-Ram-Dua.jpg)
HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram Dual 256GB SSD K420 Linux GA
$161.24
![HP Z440 Workstation 18 core Xeon E5-2699 V3 64GB 1TB SSD R5-340X WIFI WINDOWS 11 picture](/store/img/g/8Z0AAOSwoLhicrwu/s-l225/HP-Z440-Workstation-18-core-Xeon-E5-2699-V3-64GB-1.jpg)
HP Z440 Workstation 18 core Xeon E5-2699 V3 64GB 1TB SSD R5-340X WIFI WINDOWS 11
$249.99
![HP Z2 Mini G3 Workstation Xeon E3-1225 V5 8GB RAM 256GB SSD Used Open Box No OS picture](/store/img/g/p1AAAOSwDrxmITsv/s-l225/HP-Z2-Mini-G3-Workstation-Xeon-E3-1225-V5-8GB-RAM-.jpg)
HP Z2 Mini G3 Workstation Xeon E3-1225 V5 8GB RAM 256GB SSD Used Open Box No OS
$140.00
![INTEL XEON 5218R GOLD 2.1GHZ PROCESSOR | SRGZ7 picture](/store/img/g/jvQAAOSwyNZmabJj/s-l225/INTEL-XEON-5218R-GOLD-2-1GHZ-PROCESSOR-SRGZ7.jpg)
INTEL XEON 5218R GOLD 2.1GHZ PROCESSOR | SRGZ7
$549.99
![SR1XP Intel Xeon E5-2680 v3 12 Core 30MB 2.5GHz LGA 2011-3 Grade A Processor picture](/store/img/g/fEMAAOSwy1JmPnWm/s-l225/SR1XP-Intel-Xeon-E5-2680-v3-12-Core-30MB-2-5GHz-LG.jpg)
SR1XP Intel Xeon E5-2680 v3 12 Core 30MB 2.5GHz LGA 2011-3 Grade A Processor
$3.82
![Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU picture](/store/img/g/y6AAAOSwkWtmBd8U/s-l225/Intel-Xeon-Gold-6140-SR3AX-2-3GHz-18-Core-Processo.jpg)
Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU
$32.79
![Intel Xeon E7-8890 V4 2.20GHz 24-Core 60MB LGA2011 Server CPU Processor SR2SS picture](/store/img/g/GyQAAOSwT45lBMsz/s-l225/Intel-Xeon-E7-8890-V4-2-20GHz-24-Core-60MB-LGA2011.jpg)
Intel Xeon E7-8890 V4 2.20GHz 24-Core 60MB LGA2011 Server CPU Processor SR2SS
$29.99
![Genuine Intel Xeon E5-2680V4 2.40Ghz 14-Core 35MB LGA2011 CPU P/N: SR2N7 picture](/store/img/g/fu8AAOSweXNkGJuo/s-l225/Genuine-Intel-Xeon-E5-2680V4-2-40Ghz-14-Core-35MB-.jpg)
Genuine Intel Xeon E5-2680V4 2.40Ghz 14-Core 35MB LGA2011 CPU P/N: SR2N7
$14.99
![Intel Xeon Silver 4214 12-Core 2.20GHz FCLGA3647 CPU Processor - SRFB9 picture](/store/img/g/F2QAAOSwcBxmb1Gp/s-l225/Intel-Xeon-Silver-4214-12-Core-2-20GHz-FCLGA3647-C.jpg)
Intel Xeon Silver 4214 12-Core 2.20GHz FCLGA3647 CPU Processor - SRFB9
$129.99
![Apple MAC Pro A1481 Late 2013 Xeon Quad-Core 3.7GHz 16GB 1TB SSD FirePro D300 picture](/store/img/g/PJcAAOSwBd9mb~JM/s-l225/Apple-MAC-Pro-A1481-Late-2013-Xeon-Quad-Core-3-7GH.jpg)
Apple MAC Pro A1481 Late 2013 Xeon Quad-Core 3.7GHz 16GB 1TB SSD FirePro D300
$235.00