aboutsummaryrefslogtreecommitdiff
path: root/src/arctica-greeter.vala
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-03-16 14:16:14 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-03-16 14:16:14 +0100
commit76f2e65a6e011cb41f1b7897255c0cf23e49a30e (patch)
tree287161aaa3be53bf104a40924e23ae4c2bfdd6e7 /src/arctica-greeter.vala
parent9e025f25e0021e0e56afb277b9ddfa588c3cdf7a (diff)
downloadarctica-greeter-76f2e65a6e011cb41f1b7897255c0cf23e49a30e.tar.gz
arctica-greeter-76f2e65a6e011cb41f1b7897255c0cf23e49a30e.tar.bz2
arctica-greeter-76f2e65a6e011cb41f1b7897255c0cf23e49a30e.zip
HiDPI: Do not enable it in test-mode.
Diffstat (limited to 'src/arctica-greeter.vala')
-rw-r--r--src/arctica-greeter.vala22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index 74be36a..c10f883 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -648,17 +648,9 @@ public class ArcticaGreeter
log_timer = new Timer ();
Log.set_default_handler (log_cb);
- 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);
- }
-
bool do_show_version = false;
bool do_test_mode = false;
+
OptionEntry versionOption = { "version", 'v', 0, OptionArg.NONE, ref do_show_version,
/* Help string for command line --version flag */
N_("Show release version"), null };
@@ -668,6 +660,18 @@ public class ArcticaGreeter
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"));