[Gtk-rs] How to determine if an app is already running with app id

Hi

How can I determine if an instance of my gtk app with domain name, for example, com.gitlab.myproject is already running?

You could use a unique file lock with optional process ID or then just the domain name for testing. See file_lock crate for one way of achieving this: file_lock - Rust

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.