maidsafe-archive / system_uri Goto Github PK
View Code? Open in Web Editor NEWDesktop System App URI registration handler
License: Other
Desktop System App URI registration handler
License: Other
$ cargo build
Compiling ffi_utils v0.1.0 (https://github.com/maidsafe/safe_client_libs.git?branch=dev#3ba1cb67)
error: struct field shorthands are unstable (see issue #37340)
--> /home/daniel/.cargo/git/checkouts/safe_client_libs-e3345e9360262bab/3ba1cb6/ffi_utils/src/catch_unwind.rs:54:21
|
54 | error_code,
| ^^^^^^^^^^
error: aborting due to previous error
error: Could not compile `ffi_utils`.
To learn more, run the command again with --verbose.
Having a /
in the name provided breaks installation on Linux. Supposedly because it is being interpreted as a path that doesn't exist.
E.g. on docs.rs the open
function is documented as:
Open a given URI on Linux systems
We should have more generic and extensive rustdoc for this function (and install
too).
On macOS, specifically with the safe browser, registering a custom protocol works, but it's not guaranteed to open the registering app for that URI. It seems that with different app versions installed, or moved to different parts of the OS (through app translocation, eg), it's currently not guaranteed that a registered URI will open the registering app...
I'm not sure how OSX determines what to open (version... location... something else...). And I'm not sure if there's something on the app level that ought to/could be done to avoid this.
eg:
~/Applications/safe-browser.app
opens, and registers itself to handle safe-auth://
, BUT ~/downloads.safe-browser.app
also exists so maybe OSX decides to open that for safe-auth://
urls, even though we just registered the former as the new handler. :(
I managed to get this to work on MacOS. (Would be helpful to add a line to the readme stating that you have to bundle the app for this to work on MacOS.)
The app does open but if I provide an argument to the link, e.g. "scheme://ARG", is there a way for me to use that argument inside my app?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.