Bug 1216462 - YaST2 GUI Control Center has Text Lines Cut Off Vertically and No Icons
Summary: YaST2 GUI Control Center has Text Lines Cut Off Vertically and No Icons
Status: RESOLVED WORKSFORME
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: Current
Hardware: 64bit openSUSE Tumbleweed
: P5 - None : Minor (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: Jiri Srain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-22 12:06 UTC by Francisco Mendezy
Modified: 2023-10-23 08:54 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Yast2 interface bug (175.38 KB, image/png)
2023-10-22 12:06 UTC, Francisco Mendezy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco Mendezy 2023-10-22 12:06:51 UTC
Created attachment 870371 [details]
Yast2 interface bug

The display of Yast2 options is broken and cannot be displayed correctly, try changing the shell theme in gnome to the official one but the problem persists.

Yast2 should be able to adapt to display correctly since it is a vital tool for the proper functioning of OpenSUSE.
Comment 1 Stefan Hundhammer 2023-10-22 12:39:08 UTC
This is not YaST itself, it's one of the control centers. It's most likely yast2-control-center-qt, or it could also be yast2-control-center-gnome.

What is quite obviously missing are the ICONS for each YaST module; those are normally what determine the height of each row. It's a bit surprising that the underlying widget library (libQt) doesn't enforce the height of the text as the minimum height; but that might have to do with the widget theme used which likes like Windows95 one.

So, the first fix would be to install the missing icons. They come with a default installation, unless you explicitly deselect them, in which case you don't get icons in the YaST control center, as shown here.

Please attach (attach, not paste!) the output of

  rpm -qa
Comment 2 Stefan Hundhammer 2023-10-22 12:40:19 UTC
> the widget theme used which likes like Windows95 one.
                                                         looks like the Windows95 one
Comment 3 Stefan Hundhammer 2023-10-23 08:49:04 UTC
As far as I can tell, you are using /usr/lib/YaST2/bin/y2controlcenter from the yast2-control-center-qt package. You can verify that by calling that binary directly.

That is a very simple standalone pure Qt program that is very independent of YaST, and which can be replaced by another similar program. It collects .desktop files from /usr/share/applications/YaST2 and displays their content in a grid,
using icons from your desktop theme (QIcon::fromTheme()).

As a fallback (if it cannot determine what desktop theme to use), it uses icons from /usr/share/icons/hicolor/scalable/apps. Those icons come with each individual YaST module.

So obviously, your (GNOME?) desktop icon theme does not cooperate with that. That's a bug of that theme, not of YaST or of yast2-control-center-qt.

IIRC /usr/share/icons/hicolor/scalable/apps should be a general fallback for such missing application icons for all icon themes. I might be wrong there, though.


You can work around the problem by symlinking the YaST icons from /usr/share/icons/hicolor/scalable/apps to the equivalent directory of your icon theme, e.g.

  cd /usr/share/icons/MyIconTheme
  cd scalable                        (if that exists)
  sudo ln -s ../../hicolor/scalable/apps/yast*.svg .
Comment 4 Stefan Hundhammer 2023-10-23 08:54:34 UTC
As an alternative, you can also start each individual YaST module from your desktop's menu.

For example on my Xfce desktop, I get them in the "Settings" submenu and also in the "System" submenu, or by searching for "yast" in the menu search box. There are many ways to start a YaST module.