Call Ring ID accepted as command line argument
Issue generated from Tuleap's migration script. Originally submitted by: Victor (vnikulshin)
An URI scheme is a standard approach that can used to better integrate Ring into messaging and mail clients, browsers and other system applications across all platforms.
The "ring:" scheme does not seem to be occupied by any other application or protocol, so it can be officially reserved by Ring project. The new scheme can be automatically picked up by all applications, provided two conditions are met:
- the URI scheme must be associated system-wide with a certain handler;
- that handler must correctly accept the URI string and do something with it.
It looks like Ring clients already register themselves with their respective operating systems, so the first condition looks more or less satisfied.
On the other hand, gnome-ring does not accept any parameters or arguments when it is invoked. The standard way to do this in GNU/Linux is through the command-line arguments.
Take Firefox, for example. The the desktop file provided by Firefox, the invocation command looks like this:
Exec=firefox %u
This way any URL handled by Firefox will be passed as the first command-line argument which will prompt Firefox to load that page.
To achieve the same behaviour in gnome-ring, it is possible to leverage arguments parsing functionality available to all GTK applications.