-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable settings portal for screenshots
- Loading branch information
Showing
1 changed file
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
#!/usr/bin/env bash | ||
exec env G_MESSAGES_DEBUG=all GSETTINGS_BACKEND=memory cargo run -- \ | ||
|
||
set -euo pipefail | ||
|
||
variables=( | ||
# Run app with default settings: Force the in-memory gsettings backend to | ||
# block access to standard Gtk settings, and tell Adwaita not to access | ||
# portals to prevent it from getting dark mode and accent color from desktop | ||
# settings. | ||
# | ||
# Effectively this makes our app run with default settings. | ||
GSETTINGS_BACKEND=memory | ||
ADW_DISABLE_PORTAL=1 | ||
) | ||
|
||
exec env "${variables[@]}" cargo run -- \ | ||
--devices-file "$(git rev-parse --show-toplevel)/screenshots/devices.json" |