AzureStorageExplorer icon indicating copy to clipboard operation
AzureStorageExplorer copied to clipboard

Support `storageexplorer://` urls on Linux

Open hterik opened this issue 1 year ago • 3 comments

Preflight Checklist

Problem

I want to click on storageexplorer:// urls and have them open Storage Explorer automatically, on Linux (Ubuntu).

Desired Solution

Clicking storageexplorer:// urls open storage explorer.

Alternatives and Workarounds

No response

Additional Context

No response

hterik avatar May 27 '24 14:05 hterik

@hterik Unfortunately for Linux, there isn't a uniform way for us to register URL protocols. That largely depends on the installed desktop environment.

While it's not a one-click solution, you can still use the storageexplorer:// URI:

  1. Copy the URI to the clipboard.
  2. Launch Storage Explorer.
  3. Select File > Open Direct Link from the menu.
  4. Paste the URI and click Open.

craxal avatar May 28 '24 17:05 craxal

Thanks @craxal. Is it reasonable to ask for supporting at least the most popular distribution (maybe even top 3)?

Based on https://survey.stackoverflow.co/2023/?ref=itsfoss.com#technology, 27% of developers are using Ubuntu. Debian and Arch coming in next in the linux group at 8% each. Together, those 3 make up for 43% of the overall desktop OS market share for developers.

hterik avatar May 31 '24 16:05 hterik

I did a little bit of digging and discovered a few things:

  • A .desktop file could be used to register a MIME type of x-scheme-handler/storageexplorer and pass the URL to the app. In theory, this would work for any XDG desktop environment.
  • Our snap already produces a .desktop file, so we might only need to add one or two entries.

We can spend some time experimenting to see if this is feasible for our snap distribution.

craxal avatar May 31 '24 17:05 craxal

Useful links for possible implementation:

  • https://unix.stackexchange.com/questions/497146/create-a-custom-url-protocol-handler
  • https://snapcraft.io/docs/desktop-menu-support

craxal avatar Oct 31 '24 23:10 craxal

Discovered something insteresting while working on this. Looks like our snap entrypoint doesn't properly pass command line arguments to the Storage Explorer executable. This will to be fixed in order to get direct links working.

craxal avatar Feb 05 '25 23:02 craxal

CTI successfully verified links are working.

craxal avatar Feb 13 '25 19:02 craxal