Skip to content

Commit

Permalink
warpinator-launch: Unset GTK3_MODULES for Flatpak installs.
Browse files Browse the repository at this point in the history
The module isn't installed (it's not useful in a sandbox), but
this will prevent warnings at startup.
  • Loading branch information
mtwebster committed May 24, 2024
1 parent de3cbde commit ca475e3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/warpinator-launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@
if args.debug:
os.environ["WARPINATOR_DEBUG"] = "1"

import config

# Remove xapp from GTK3_MODULES if this is a flatpak.
if config.FLATPAK_BUILD:
mods_str = os.environ.get("GTK3_MODULES")
if mods_str is not None:
mods = mods_str.split(":")
if "xapp-gtk3-module" in mods:
mods.remove("xapp-gtk3-module")
os.environ["GTK3_MODULES"] = ":".join(mods)

# Secure mode enforcement
import prefs
enforcer = prefs.SecureModePrefsBlocker()
Expand All @@ -75,7 +86,6 @@

###########################
# See what mode we'll run in
import config

supported_modes = ["legacy"]

Expand Down

0 comments on commit ca475e3

Please sign in to comment.