diff --git a/ui/settings.py b/ui/settings.py index 0d861b2..bcc5390 100644 --- a/ui/settings.py +++ b/ui/settings.py @@ -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,