linuxmint / mintupdate

The Linux Mint Update Manager
309 stars 152 forks source link

Dialog Boxes don't inherit the correct theming. #746

Closed phillipsj closed 1 year ago

phillipsj commented 1 year ago

Describe the bug

I noticed when using the mintUpdate that the dialog that pops up during a refresh or an update install use the theme applied to the system.

Screenshots

image

To Reproduce Steps to reproduce the behavior:

  1. Apply a theme to the system, I am using Dracula
  2. Open mintUpdate
  3. Click Refresh
  4. See error

Expected behavior

That the theme is applied consistently.

Distribution:

Software version:

5.8.7 on Linux Mint 21

Logs:

08.04@13:23 ++ Launching Update Manager
08.04@13:23 ++ Changes to the package cache detected, triggering refresh
08.04@13:23 ++ Starting refresh (local only)
08.04@13:23 ++ Initial refresh will happen in 0 day(s), 0 hour(s) and 10 minute(s)
08.04@13:24 ++ System is up to date
08.04@13:24 ++ Refresh finished
08.04@13:33 ++ Update Manager is in tray mode, performing initial refresh
08.04@13:33 ++ Starting refresh (retrieving lists of updates from remote servers)
08.04@13:34 ++ Refreshing available Cinnamon updates from the server
08.04@13:34 ++ Found 2 software updates
08.04@13:34 ++ Refresh finished
08.04@13:34 ++ Recurring refresh will happen in 0 day(s), 1 hour(s) and 59 minute(s)
08.04@13:35 ++ Install requested by user
08.04@13:35 ++ Will install libgnutls30
08.04@13:35 ++ Will install openjdk-11-jre
08.04@13:35 ++ Will install openjdk-11-jre-headless
08.04@13:35 ++ Ready to launch synaptic

(synaptic:4139): Gtk-CRITICAL **: 13:35:22.171: gtk_widget_hide: assertion 'GTK_IS_WIDGET (widget)' failed
08.04@13:35 ++ Return code:0
08.04@13:35 ++ Install finished
08.04@13:35 ++ Starting refresh (local only)
08.04@13:35 ++ System is up to date
08.04@13:35 ++ Refresh finished
08.04@15:34 ++ Update Manager is in tray mode, performing recurring refresh
08.04@15:34 ++ Starting refresh (retrieving lists of updates from remote servers)
08.04@15:34 ++ Refreshing available Cinnamon updates from the server
08.04@15:34 ++ Found 1 software updates
08.04@15:34 ++ Refresh finished
08.04@15:34 ++ Recurring refresh will happen in 0 day(s), 1 hour(s) and 59 minute(s)
08.04@17:34 ++ Update Manager is in tray mode, performing recurring refresh
08.04@17:34 ++ Starting refresh (retrieving lists of updates from remote servers)
08.04@17:34 ++ Refreshing available Cinnamon updates from the server
08.04@17:34 ++ Found 1 software updates
08.04@17:34 ++ Refresh finished
08.04@17:34 ++ Recurring refresh will happen in 0 day(s), 1 hour(s) and 59 minute(s)
08.04@18:52 ++ Changes to the package cache detected, triggering refresh
08.04@18:52 ++ Starting refresh (local only)
08.04@18:52 ++ Found 1 software updates
08.04@18:52 ++ Refresh finished
08.04@19:34 ++ Update Manager is in tray mode, performing recurring refresh
08.04@19:34 ++ Starting refresh (retrieving lists of updates from remote servers)
08.04@19:34 ++ Refreshing available Cinnamon updates from the server
08.04@19:34 ++ Found 1 software updates
08.04@19:34 ++ Refresh finished
08.04@19:34 ++ Recurring refresh will happen in 0 day(s), 1 hour(s) and 59 minute(s)
08.04@20:58 ++ Install requested by user
08.04@20:58 ++ Will install code
08.04@20:58 ++ Ready to launch synaptic

(synaptic:19046): Gtk-CRITICAL **: 20:58:36.096: gtk_widget_hide: assertion 'GTK_IS_WIDGET (widget)' failed
08.04@20:58 ++ Return code:0
08.04@20:58 ++ Install finished
08.04@20:58 ++ Starting refresh (local only)
08.04@20:58 ++ System is up to date
08.04@20:58 ++ Refresh finished
08.04@20:59 ++ Starting refresh (retrieving lists of updates from remote servers)
08.04@20:59 ++ Refreshing available Cinnamon updates from the server
08.04@20:59 ++ System is up to date
08.04@20:59 ++ Refresh finished
08.04@20:59 ++ Starting refresh (retrieving lists of updates from remote servers)
08.04@20:59 ++ Refreshing available Cinnamon updates from the server
08.04@20:59 ++ System is up to date
08.04@20:59 ++ Refresh finished
08.04@20:59 ++ Starting refresh (retrieving lists of updates from remote servers)
08.04@20:59 ++ Refreshing available Cinnamon updates from the server
08.04@20:59 ++ System is up to date
08.04@20:59 ++ Refresh finished
phillipsj commented 1 year ago

I would be happy to try to help with this issue. I am new Gtk app development, but not development in general. If you can point me in a direction, I would be happy to try to fix it.

JosephMcc commented 1 year ago

That's because your theme is installed to ~/.themes instead of /usr/share/themes/ so apps that run as root, like the dialog boxes you are talking about, can't use it.

phillipsj commented 1 year ago

@JosephMcc thanks for the quick response. That's obvious now that we are talking about it.