On Thursday, 10 October 2019 at 12:30:25 UTC, Hossain Adnan wrote:
Here I have a program that wants to
1. detect whether if it's the only instance
1.1. it does that by trying to create a Unix Domain Socket
and trying to binding it to a specific address.
2. if a duplicate program is not
On Thursday, 10 October 2019 at 12:30:25 UTC, Hossain Adnan wrote:
Here I have a program that wants to
1. detect whether if it's the only instance
1.1. it does that by trying to create a Unix Domain Socket
and trying to binding it to a specific address.
[...]
If it helps explaining
Here I have a program that wants to
1. detect whether if it's the only instance
1.1. it does that by trying to create a Unix Domain Socket
and trying to binding it to a specific address.
2. if a duplicate program is not running, establish an UDS
and then listen to the socket.
On Saturday, 28 September 2019 at 13:37:12 UTC, Kagamin wrote:
https://ddbus.dpldocs.info/ddbus.bus.requestName.html
It requires a Connection type which I cannot find in the API.
On Wednesday, 25 September 2019 at 11:46:04 UTC, Ron Tarrant
wrote:
Hi y'all,
I've been Googling how to do this, but coming up with nothing
definitive. Are there any articles for how to do this for:
Linux?
For Linux there are 3 new options:
1. Appimages (https://appimage.org/): This is
Hi I need to detect application uniqueness using dbus. I have a
working code in Rust:
fn run_as_unique_instance() {
println!("First instance detected. Doing work...");
loop {}
}
fn run_as_nonunique_instance() {
println!("Another instance is already running. Quiting...");