RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1148455 - wish applications (tcl/tk) dont start
Summary: wish applications (tcl/tk) dont start
Keywords:
Status: CLOSED DUPLICATE of bug 1140329
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: tk
Version: 7.2
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Jaroslav Škarvada
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-01 13:48 UTC by Gabriellla Schmidt
Modified: 2014-11-14 11:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-14 11:54:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.