Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tails
tails
Commits
df63ebd8
Commit
df63ebd8
authored
Mar 13, 2012
by
Tails developers
Browse files
Autostart iceweasel only when the network is up and Tor is running.
parent
79f898d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
config/chroot_local-includes/etc/NetworkManager/dispatcher.d/60-iceweasel.sh
0 → 100755
View file @
df63ebd8
#! /bin/sh
# Run only when the interface is not "lo":
if
[
$1
=
"lo"
]
;
then
exit
0
fi
# Run whenever an interface gets "up", not otherwise:
if
[
$2
!=
"up"
]
;
then
exit
0
fi
# There's nothing to do if Iceweasel is already running
if
pidof firefox-bin 1>/dev/null 2>&1
;
then
exit
0
fi
# Get LIVE_USERNAME
.
/etc/live/config.d/username
export
DISPLAY
=
':0.0'
export
XAUTHORITY
=
"
`
echo
/var/run/gdm3/auth-for-
${
LIVE_USERNAME
}
-
*
/database
`
"
exec
/bin/su
-c
iceweasel &
config/chroot_local-includes/etc/xdg/autostart/iceweasel.desktop
deleted
120000 → 0
View file @
79f898d3
/usr/share/applications/iceweasel.desktop
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment