Bug 1148455

Summary: wish applications (tcl/tk) dont start
Product: Red Hat Enterprise Linux 7 Reporter: Gabriellla Schmidt <gaby>
Component: tkAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.2CC: jskarvad, raveit65.sun
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-14 11:54:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gabriellla Schmidt 2014-10-01 13:48:18 UTC
Description of problem:
Tcl/Tk Scripts shows the error:
Application initialization failed: unknown color name "BACKGROUND"


Version-Release number of selected component (if applicable):
mate-desktop-1.8.1-1.el7.x86_64


How reproducible:
always with every tcl/tk application

Steps to Reproduce:
1. yum install tk
2. /usr/share/tk8.5/demos/widget (or any other wish application
3.

Actual results:
gsc@meniskus(16)$ /usr/share/tk8.5/demos/widget 
Application initialization failed: unknown color name "BACKGROUND"
Error in startup script: unknown color name "BACKGROUND"
    (database entry for "-background" in widget ".")
    invoked from within
"load /usr/lib64/tk8.5/../libtk8.5.so Tk"
    ("package ifneeded Tk 8.5.13" script)
    invoked from within
"package require Tk	8.5"
    (file "/usr/share/tk8.5/demos/widget" line 14)


Expected results:
The demo widget window should apear

Additional info:

Comment 1 Wolfgang Ulbrich 2014-10-04 14:09:00 UTC
tk isn't a Mate packages and doesn't comes from epel7 repo.

Comment 3 Gabriellla Schmidt 2014-10-04 19:44:24 UTC
(In reply to Wolfgang Ulbrich from comment #1)
> tk isn't a Mate packages and doesn't comes from epel7 repo.

in my opinion its a mate problem, as the error message does not appear 
with Gnome or KDE Desktop. And in these both cases the xrdb -query shows for background hex values while with Mate the string BACKGROUND is displayed

Comment 4 Wolfgang Ulbrich 2014-10-06 14:55:23 UTC
Let's wait what tk maintainer says.
If it is really a mate issue i will forward it to upstream.
If you can't wait please open a report directly at upstream to clarify the situation.
https://github.com/mate-desktop/mate-desktop/issues
It's better a user do that because you can answer questions directly.

Comment 5 Gabriellla Schmidt 2014-10-07 13:32:22 UTC
I did enter the bug into:
  https://github.com/mate-desktop/mate-desktop/issues/134
Closed with the hint:
  http://sourceforge.net/p/tktoolkit/bugs/1673/

Comment 6 Wolfgang Ulbrich 2014-10-07 16:59:30 UTC
hmm, I really thinking this comes from tk itself.
Because fedora comes with the same /etc/X11/Xresources file than rhel7/centos7.
But in fedora-20 tk version is
[rave@mother ~]$ rpm -qa tk
tk-8.5.14-1.fc20.x86_64

and the command /usr/share/tk8.5/demos/widget displays the toolkit.
And fedora's and epel7's Mate packages aren't different.

centos7/rhel comes with tk-8.5.13-4.el7.

I will try out to rebuild tk-8.5.14-1.fc20.x86_64 for epel7 to see if it makes a different.

Comment 7 Wolfgang Ulbrich 2014-10-07 17:30:03 UTC
Ok, a rebuild from fedora's version for epel7 doesn't help.
So, we have to wait for tk maintainer.

Comment 8 Wolfgang Ulbrich 2014-11-12 19:42:44 UTC
As a workaround until i found the culprit you can run
'gsettings get org.mate.SettingsDaemon.plugins.xrdb active false'
Couriously, exactly this plugin is responsible for setting the GdkColor map.

[rave@mother github-matedesktop]$ grep -n -i 'WINDOW_FOREGROUND' mate-settings-daemon/plugins/xrdb/*
mate-settings-daemon/plugins/xrdb/msd-xrdb-manager.c:124:                             "WINDOW_FOREGROUND",

Maybe it is broken here or it isn't needed in rhel7.

Comment 9 Wolfgang Ulbrich 2014-11-12 19:47:26 UTC
Dear Jaroslav Škarvada,
could you please mark this bug as dublicate of https://bugzilla.redhat.com/show_bug.cgi?id=1140329
I'm not allowed to do this as epe7 maintainer.

Comment 10 Wolfgang Ulbrich 2014-11-12 19:55:14 UTC
opps, right command is
gsettings set org.mate.SettingsDaemon.plugins.xrdb active false

Comment 11 Wolfgang Ulbrich 2014-11-12 23:06:32 UTC
this update fix the issue.
https://admin.fedoraproject.org/updates/mate-settings-daemon-1.8.2-2.el7

Comment 12 Jaroslav Škarvada 2014-11-14 11:54:26 UTC
Hi Wolfgang,

thanks for handling this and I am sorry to be a bit delayed with this issue :)

It works in Gnome, because (IIRC) gnome-settings-daemon doesn't add Xresources, i.e. the following make the TK app to start even with unpatched mate-settings-daemon:

$ xrdb /etc/X11/Xresources
$ /usr/share/tk8.5/demos/widget

I will follow-up with deeper analysis in bug 1140329.

*** This bug has been marked as a duplicate of bug 1140329 ***