SS14.Launcher icon indicating copy to clipboard operation
SS14.Launcher copied to clipboard

Protocol Handlers For Robust Toolbox?

Open LudwigVonChesterfield opened this issue 2 years ago • 4 comments
trafficstars

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

LudwigVonChesterfield avatar Apr 08 '23 16:04 LudwigVonChesterfield

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.

PJB3005 avatar Apr 08 '23 16:04 PJB3005

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?

ike709 avatar Apr 08 '23 16:04 ike709

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.

PJB3005 avatar Apr 08 '23 16:04 PJB3005

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.

Visne avatar Jul 06 '23 11:07 Visne