Skip to content

u/typematrix

In this archive from Mar 2017 to Apr 2020

2
posts
58
comments
0
media
218
score

I encountered a similar problem before trying to run notify-send with cron I edited the arch cron wiki page with solution see Running X.org server-based applications section

https://wiki.archlinux.org/index.php/Cron

Cron does not run under the X.org server therefore it cannot know the environmental variable necessary to be able to start an X.org server application so they will have to be defined. Sending values to dbus. So it needs to tell dbus to connect to the right bus. The address can be found by examining DBUS_SESSION_BUS_ADDRESS environment variable and setting it to the same value. Therefore: Therefore in my case it was

DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus

adding this to crontab.or like this

17 02 * ... env DBUS_SESSION_BUS_ADDRESS=your-address foo command

at least i think this is your problem!

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.