manatools / dnfdragora

dnfdragora is a dnf frontend based on libyui abstraction
GNU General Public License v3.0
133 stars 41 forks source link

dnfdragora 2.1.2 starts the app window with 0 width #207

Closed archerallstars closed 2 years ago

archerallstars commented 2 years ago

As the title said. I installed the app on Fedora 36, GNOME 42.3, via GNOME Software.

If I am lucky, the app's windows stripe will not show at the edge of the screen. Otherwise, it would be impossible to resize the window, thus it's impossible to use the app at all. The issue is shown in the screen recording below:

Kooha-07-30-2022-22-11-59.webm

anaselli commented 2 years ago

I don't have gnome so i cannot testi right now. Can you please make two tests?

  1. run dnfdragora from console and see if it works or write something
  2. run dnfdragora with --fullscreen option and see if it works (in such a case a workaround could be to change the desktop file)
LazyT commented 2 years ago

Same here with Fedora 36:

`

[Gdk] libyui-gtk:0 (): gdk_monitor_get_workarea: assertion 'GDK_IS_MONITOR (monitor)' failed [Gdk] libyui-gtk:0 (): gdk_monitor_get_geometry: assertion 'GDK_IS_MONITOR (monitor)' failed [Gdk] libyui-gtk:0 (): gdk_monitor_get_workarea: assertion 'GDK_IS_MONITOR (monitor)' failed [Gdk] libyui-gtk:0 (): gdk_monitor_get_geometry: assertion 'GDK_IS_MONITOR (monitor)' failed [Gtk] libyui-gtk:0 (): gtk_window_resize: assertion 'width > 0' failed <_M_> [mga-gtk-ui] YMGA_GCBTable.cc:439 YMGA_GCBTable(): columns 8 tot 8 (python3:6750): Gtk-WARNING **: 11:50:05.922: Negative content width -7 (allocation 1, extents 4x4) while allocating gadget (node headerbar, owner GtkHeaderBar) (python3:6750): Gtk-WARNING **: 11:50:05.923: gtk_widget_size_allocate(): attempt to allocate widget with width -102 and height 19 (python3:6750): Gtk-WARNING **: 11:50:05.923: Negative content width -23 (allocation 1, extents 12x12) while allocating gadget (node label, owner GtkLabel) (python3:6750): Gtk-WARNING **: 11:50:05.959: Negative content width -7 (allocation 1, extents 4x4) while allocating gadget (node headerbar, owner GtkHeaderBar) (python3:6750): Gtk-WARNING **: 11:50:05.959: gtk_widget_size_allocate(): attempt to allocate widget with width -102 and height 19 (python3:6750): Gtk-WARNING **: 11:50:05.959: Negative content width -23 (allocation 1, extents 12x12) while allocating gadget (node label, owner GtkLabel) ` Works fine with "--qt" / "--ncurses" or " --fullscreen". Switched to Qt in the desktop file as workaround.
anaselli commented 2 years ago

Thanks for the error, at least i can try to figure where the problem could be...

anaselli commented 2 years ago

Is DISPLAY variable set in your environment? I read here and there that could be the cause... i know it isn't a solution but another workaround maybe yes...

LazyT commented 2 years ago

Yes, it is set to "DISPLAY=:0"

anaselli commented 2 years ago

i committed a patch for libyui-gtk that seems to work, is there anyone who can confirm it so that i ask for a PR? Thanks

anaselli commented 2 years ago

with the above libyui-gtk commit and https://github.com/manatools/dnfdragora/commit/f42fdf5aaf40aec34fc8ab86fdc6aeb3fd207518 this bug should be fixed.

liukliukliuk commented 1 year ago

can anyone pls tell me how to fix it?

anaselli commented 1 year ago

Ask your distro for libyui-gtk and dnfdragora updates