Mailinglist Archive: opensuse-bugs (4627 mails)

< Previous Next >
[Bug 1037891] All YaST module window names show "ruby" instead of a more specifc name (was: Yast module windows in Plasma: generic x window icon and grouped as "ruby" in task manager)
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 08 Jun 2017 10:04:44 +0000
  • Message-id: <bug-1037891-21960-zX0XkjWtWP@http.bugzilla.suse.com/>
http://bugzilla.suse.com/show_bug.cgi?id=1037891
http://bugzilla.suse.com/show_bug.cgi?id=1037891#c24

--- Comment #24 from Fabian Vogt <fvogt@xxxxxxxx> ---
(In reply to Josef Reidinger from comment #23)
(In reply to Fabian Vogt from comment #22)
(In reply to Josef Reidinger from comment #21)
ok, so we at least move forward. I will check this icon issue, how to do
it
in qt properly.

It's not the icon, it's the WM_CLASS. It should be enough to just override
the passed argv[0] to the QApplication constructor, restoring the behaviour
before YaST launched with argv[0] == "ruby"

and that's the part that is not so easy, as libyui obtain it from /proc

see
https://github.com/libyui/libyui-qt/blob/
817ddbe637c98a54460b1152ec9d51e7f2d9422e/src/YQUI.cc#L126

in past it works due to this dirty hack, but we no longer want such nasty
hack. So we need find better way to pass it
https://github.com/libyui/libyui-qt/blob/
817ddbe637c98a54460b1152ec9d51e7f2d9422e/src/YQUI.cc#L141

Maybe QCoreApplication::setApplicationName("YaST2") works here. As YaST does
not use QSettings, that shouldn't have any ill side effects.

--
You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >