space-wizards / SS14.Launcher

Launcher for Space Station 14.
https://spacestation14.io
MIT License
35 stars 62 forks source link

Protocol Handlers For Robust Toolbox? #85

Open LudwigVonChesterfield opened 1 year ago

LudwigVonChesterfield commented 1 year ago

I mean, ss14 already uses a ss14:// preffix. It would be neat to be able to connect directly by giving your friend a link.

PJB3005 commented 1 year ago

The launcher can handle this, but the problem is actually installing the protocol handlers.

Our launcher distribution options right now are:

  1. Steam
  2. Zip download
  3. Linux Flatpak

Some notes on this: Windows Steam: doable, but I need to get around to adding an install script that wires up the relevant registry keys. Windows zip: would require UAC prompt to install handlers, and leave behind registry keys that can't be cleared up correctly. Yuck. macOS: I assume/hope that we just need to declare this in the app manifest somewhere so macOS picks up on it automatically if you drop the app bundle in ~/Applications. Steam macOS: no idea since I assume the above of ~/Applications won't apply. Linux zip or Steam: well it wouldn't require a UAC prompt like Windows but we'd still be leaving garbage behind. Linux flatpak: probably doable.

ike709 commented 1 year ago

For the scenarios that would leave junk behind, maybe just prompt the user on first run and ask if they want to install the handler?

PJB3005 commented 1 year ago

For the scenarios that would leave junk behind, maybe just prompt the user on first run and ask if they want to install the handler?

Something like that is basically unavoidable for zip downloads, so it's probably better than nothing yes. May be better to just have a button in the options though.

Visne commented 1 year ago

For cleaning up the junk, there could be a button in the settings to undo the handler installation. Then people that care have the option to remove it, at least. I think 99% of users won't care or even notice, though.