aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.profile8
1 files 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