Detect absence of a TTY, and refuse to use the CLI backend interactively in that...
[lilass.git] / lilass
diff --git a/lilass b/lilass
index 02345f9d02cc6962437ab2c7f1a7932e036bb9f3..49dbeea61d24fa251af53a6702de379c495e43a6 100755 (executable)
--- a/lilass
+++ b/lilass
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # DSL - easy Display Setup for Laptops
 # Copyright (C) 2012-2015 Ralf Jung <post@ralfj.de>
 #
@@ -106,7 +106,7 @@ if __name__ == "__main__":
         frontend = gui.getFrontend(cmdArgs.frontend)
         
         # load configuration
-        config = loadConfigFile(os.getenv('HOME') + '/.dsl.conf')
+        config = loadConfigFile(os.getenv('HOME') + '/.lilass.conf')
         
         # see what situation we are in
         situation = situationByConfig(config)
@@ -147,4 +147,3 @@ if __name__ == "__main__":
             turnOnBacklight()
     except Exception as e:
         frontend.error(str(e))
-        raise