From c5510367db582d1c0683f182dd0e151ea0ab3b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 10 Jun 2022 14:14:22 +0200 Subject: Improvements for NixOS --- local/bin/startsway | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'local/bin/startsway') diff --git a/local/bin/startsway b/local/bin/startsway index 63163ee..1639277 100755 --- a/local/bin/startsway +++ b/local/bin/startsway @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu exec 1> >(logger -s -t "${0##*/}") 2>&1 @@ -17,4 +17,9 @@ export MOZ_ENABLE_WAYLAND=1 # Java application do not display properly export _JAVA_AWT_WM_NONREPARENTING=1 -exec dbus-run-session sway +dbus="dbus-run-session" +if command -v systemctl >/dev/null; then + dbus="" +fi + +exec $dbus sway -- cgit v1.2.3