summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-04-25 13:39:35 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-04-25 13:39:35 -0400
commit261a6a4aeb85101b371f2eabdc1a58d9ea6cda7a (patch)
tree55f872eca20000d93f65f31ac2e985e0b67916a6
parent235702533629e636dfe5698836acaa17fd49d467 (diff)
parent30af65ec7957fef0ad6b1188af7df116de195373 (diff)
Merge branch 'master' of github.com:LukeSmithxyz/mutt-wizard
-rwxr-xr-xbin/mw2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mw b/bin/mw
index f967165..39e5981 100755
--- a/bin/mw
+++ b/bin/mw
@@ -244,7 +244,7 @@ choosecron() { ! pgrep -x cron\|crond >/dev/null && echo "No cron manager runnin
read -r minnum
printf "\033[0m"
done
- (crontab -l; echo "*/$minnum * * * * export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus; export DISPLAY=:0; . \$HOME/.profile; $(type mailsync | cut -d' ' -f3)") | crontab - &&
+ (crontab -l; echo "*/$minnum * * * * export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus; export DISPLAY=:0; . \$HOME/.profile; $(type mailsync | cut -d' ' -f3)") | crontab - &&
echo "Cronjob added. Mail will sync every $minnum minutes. Be sure you have your cron manager running."
fi ;}