From 380443a9c67e28d16dfc33fb4838b1412db61f9c Mon Sep 17 00:00:00 2001 From: srdusr Date: Sun, 23 Jun 2024 19:26:48 +0200 Subject: Testing --- .profile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.profile b/.profile index 874b6be..b4379f1 100644 --- a/.profile +++ b/.profile @@ -36,7 +36,8 @@ display() { #session="exec bspwm -name login" ;; Hyprland | sway) - session="exec $session" + #session="exec $session" + session="dbus-run-session $session" ;; *) echo "Session $session is not supported." @@ -58,7 +59,8 @@ display() { break ;; Hyprland | sway) - session="exec $wm" + #session="exec $wm" + session="dbus-run-session $wm" break ;; esac @@ -88,7 +90,7 @@ zsh() { # GnuPG gnupg() { - if ! systemctl --quiet --user is-active gpg-agent.socket && command -v gpg-agent >/dev/null 2>&1; then + if ! pgrep -x "gpg-agent" >/dev/null 2>&1 && command -v gpg-agent >/dev/null 2>&1; then echo 'Launching GPG agent...' eval "$(gpg-agent --daemon)" fi -- cgit v1.2.3