Implement nest detection

This commit is contained in:
Salt 2020-07-08 00:33:21 -05:00
parent b054d1d1ca
commit ee21a30107
2 changed files with 3 additions and 0 deletions

View File

@ -65,6 +65,7 @@ Firestarter, in addition to spawning the programs in the default configs, also i
| 52 | Failed to create configuration directory |
| 53 | Failed to create logging directory |
| 54 | `HOME` does not exist or is unreadable |
| 55 | Firestarter is already running |
| 70 | No configuration files available |
## Idiosyncracies

View File

@ -150,6 +150,8 @@ step_preexecute() {
[ -n "$_optdryrun" ] && return 0
[ -r "$HOME/.xsessionrc" ] && . "$HOME/.xsessionrc"
export XDG_CURRENT_DESKTOP="${XDG_CURRENT_DESKTOP:-firestarter}"
[ -n "$FIRESTARTER" ] && error "Firestarter is already running: $FIRESTARTER" 55
export FIRESTARTER="$BASHPID"
# dbus
if \
[ -z "$DBUS_SESSION_BUS_ADDRESS" ] && \