To close#845 :
I added the `-x` flag to prevent the regex from matching on _every_ pro-
cess name containing an `X`.
Because I'm not entirely sure about portability (does every `pgrep` va-
riant support that flag), I didn't push this directly.
So what do you think @LukeSmithxyz ?
A user reports notifications not working on their setup because there is
no display id contained in the `ps`/`pgrep` output concerning the Xorg
process.
This commit checks if there's a display server running at all, and if so
it sends notifications even if there's no display id.
Resolves https://github.com/LukeSmithxyz/mutt-wizard/issues/661
the new script manually searches for environmental variables
so that it can work from a cronjob
and additionally searches for all Xorg displays on Linux
so that the display notification should appear correctly
no doubt there will be more bugs, but this is what the people want
and it's worth working out
* changed ping address to a more friendly location
`1.1.1.1` is not a friendly address for users from some parts of the world (e.g., China). Changed to `example.org` which should be more friendly to access.
* changed internet check by fallback
This is probably better since for most people it does the same thing and the first back up is Cloudfare's other DNS address which surprisingly can be accessed in more places (e.g., China) now. And changed the finall fallback as example.org.
If no options are passed but the accounts are specified then the blank opt flag causes a (harmless) error message from mbsync about an empy channel.
Co-authored-by: rjl6789 <rlives6789@gmail.com>
* line 5 defined the variable DBUS_SESSION_BUS_ADDRESS before exporting it in the next line
* change the pgrep line
* Revert "Update domains.csv (#321)"
This reverts commit a92c01e131.
* Revert "Revert "Update domains.csv (#321)""
This reverts commit af0c0826b9.
* Revert "line 5 defined the variable DBUS_SESSION_BUS_ADDRESS before exporting it in the next line"
This reverts commit ca64a6ae56.
* Revert "Revert "line 5 defined the variable DBUS_SESSION_BUS_ADDRESS before exporting it in the next line""
This reverts commit 4304eb731c.