mirror of
https://github.com/aclist/dztui.git
synced 2026-08-29 19:27:13 +02:00
fix: catch error if no GTK theme is available (headless installs)
This commit is contained in:
parent
1212c09110
commit
c0c3ee8c64
@ -323,8 +323,12 @@ class App(Gtk.Application):
|
|||||||
|
|
||||||
MainController = Controller()
|
MainController = Controller()
|
||||||
|
|
||||||
theme = Gtk.IconTheme.get_default()
|
try:
|
||||||
icons = theme.list_icons(None)
|
theme = Gtk.IconTheme.get_default()
|
||||||
if STEAM_ICON not in icons:
|
icons = theme.list_icons(None)
|
||||||
logger.warn(strings.steam_icon_missing)
|
if STEAM_ICON not in icons:
|
||||||
warnings.warn(strings.steam_icon_missing, stacklevel=2)
|
logger.warn(strings.steam_icon_missing)
|
||||||
|
warnings.warn(strings.steam_icon_missing, stacklevel=2)
|
||||||
|
except Exception as e:
|
||||||
|
logger.warning(e)
|
||||||
|
warnings.warn(strings.gtk_theme_missing, stacklevel=2)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user