aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-02-06 11:44:32 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-02-06 12:07:45 +0100
commite79bf3a819a0c972eeabd3018d412baf0531965b (patch)
tree26476c16b13c4252e89cc9b2a3525de270011f25
parent642cbe7d3830c7dd27230ea84e86277243ccd7b7 (diff)
downloadarctica-greeter-e79bf3a819a0c972eeabd3018d412baf0531965b.tar.gz
arctica-greeter-e79bf3a819a0c972eeabd3018d412baf0531965b.tar.bz2
arctica-greeter-e79bf3a819a0c972eeabd3018d412baf0531965b.zip
src/arctica-greeter.vala: Apply HiDPI settings after command line has been parsed (so we know if we are in test-mode or not).
-rw-r--r--src/arctica-greeter.vala25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index 6d31a9b..3f119c4 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -817,18 +817,6 @@ public class ArcticaGreeter : Object
OptionEntry nullOption = { null };
OptionEntry[] options = { versionOption, testOption, nullOption };
- if (!do_test_mode)
- {
- var hidpi = AGSettings.get_string (AGSettings.KEY_ENABLE_HIDPI);
- debug ("HiDPI support: %s", hidpi);
- if (hidpi == "auto") {
- check_hidpi ();
- }
- else if (hidpi == "on") {
- GLib.Environment.set_variable ("GDK_SCALE", "2", true);
- }
- }
-
debug ("Loading command line options");
var c = new OptionContext (/* Arguments and description for --help text */
_("- Arctica Greeter"));
@@ -846,6 +834,19 @@ public class ArcticaGreeter : Object
stderr.printf ("\n");
return Posix.EXIT_FAILURE;
}
+
+ if (!do_test_mode)
+ {
+ var hidpi = AGSettings.get_string (AGSettings.KEY_ENABLE_HIDPI);
+ debug ("HiDPI support: %s", hidpi);
+ if (hidpi == "auto") {
+ check_hidpi ();
+ }
+ else if (hidpi == "on") {
+ GLib.Environment.set_variable ("GDK_SCALE", "2", true);
+ }
+ }
+
if (do_show_version)
{
/* Note, not translated so can be easily parsed */