mirror of
https://github.com/quexten/goldwarden.git
synced 2024-12-24 20:03:22 +03:00
Fix css not being loaded in flatpak
This commit is contained in:
parent
c1da0f1802
commit
faf66da833
@ -295,8 +295,10 @@ def show_login():
|
||||
dialog.set_modal(True)
|
||||
dialog.present()
|
||||
|
||||
isflatpak = os.path.exists("/.flatpak-info")
|
||||
pathprefix = "/app/bin/" if isflatpak else "./"
|
||||
css_provider = Gtk.CssProvider()
|
||||
css_provider.load_from_path("style.css")
|
||||
css_provider.load_from_path(pathprefix+"style.css")
|
||||
Gtk.StyleContext.add_provider_for_display(
|
||||
Gdk.Display.get_default(),
|
||||
css_provider,
|
||||
|
Loading…
Reference in New Issue
Block a user