torbrowser-launcher icon indicating copy to clipboard operation
torbrowser-launcher copied to clipboard

add post install hooks

Open adrelanos opened this issue 10 years ago • 3 comments

As a distribution (and possibly for others) it's useful to run some post install scripts after installing Tor Browser. Examples:

  • We create a ~/Downloads folder.
  • We disable Tor Browser's internal updater, because it's not as secure yet.
  • Possibly in future more such as changing browser homepage.

Could you add a feature please to execute a /etc/tl/post-install (or so) script please?

adrelanos avatar Jan 07 '15 12:01 adrelanos

Good idea.

micahflee avatar Nov 06 '15 05:11 micahflee

I'm pushing this to 0.2.6 because I want to flesh out the feature a bit more first.

Do you think it makes sense to add a setting that lets the user specify a path to execute after successfully installing, but before launching? This way you could bundle an appropriate settings.json with your distro. Are there any problems with this approach?

micahflee avatar Jul 08 '16 23:07 micahflee

Not that I know. Was just looking at this from the Whonix distribution packager viewpoint back then when I wrote this ticket.

An improvement would be /etc/tl-post.d where one drop scripts. I.e. all executable files matching /etc/tl-post.d/*.sh would be executed.

adrelanos avatar Jul 09 '16 21:07 adrelanos