mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 19:51:26 -05:00
f5918495b3
The main window's UI runtime now gets a link opener (InstallSpec::open_links, craft-libs #5083), which takes every http, https and mailto link the app asks to open (Help menu, app bar Discord button, Home and About links, credits, the updater, an object's URL) and starts the system handler once per request. eframe's `links` feature, which opened them before, is removed. The runtime's opener drops every other scheme, including the file: URLs of View PDF after Saving and Show in Browser in Save for Web and SVG Options. The app now hands those to a new desktop service, Services::open_file_url, which opens them in the default web browser with the webbrowser crate, as eframe's `links` feature did. Without the service (the web build) they go to egui as before. On Linux and the BSDs the link opener runs xdg-open with the URL as its only argument. craft-libs' open_external runs `xdg-open -- <url>`, and xdg-open (xdg-utils 1.1.3, Ubuntu 24.04) exits with "unexpected option '--'" without opening anything. A URL that starts with "-" is refused. macOS and Windows use open_external.