[−][src]Crate r1
R1
Project
- Repository: https://bitbucket.org/haibison/r1
- License: Nice License 1.0.0 (see LICENSE file at root directory of
master
branch) - This project follows Semantic Versioning 2.0.0
Features
This project offers a Linux program via bin
feature.
- The program helps run one single instance of any program.
- You have to provide full path of the target program. The path will be used as an identifier (ID) to keep track of its instances.
Currently only Linux is supported, because the program relies on abstract sockets (see unix(7)
).
For more details, you can run the program with help
command.
Examples:
~> r1 -- /usr/bin/echo test
Why?
For example, Qt Creator can run multiple instances. Sometimes you don't want that. Unfortunately there's no setting to tell it to run just one single instance.
There are 2 solutions:
-
You can file a feature request (with a picture of your cat in it), and start praying for it to be accepted.
This could take some time. But it's probably not one day. It's not 2 days either.
1 week? Still seems impossible.
...
-
Or,
You can
r1
it, professionally, just like this:r1 --ns=/usr/bin/notify-send --app-name='Qt Creator' -- /usr/bin/qtcreator
Tip: you can find its icon here: https://code.qt.io/cgit/qt-creator/qt-creator.git/
Modules
version_info |
|
Constants
CODE_NAME | Crate code name |
ID | ID of this crate |
NAME | Crate name |
RELEASE_DATE | Crate release date (year/month/day) |
TAG | Tag, which can be used for logging... |
VERSION | Crate version |
Type Definitions
Result | Result type used in this crate |