Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent Multiple Instances from running Similtaneously #83

Closed
DylanScottCarroll opened this issue Jan 23, 2024 · 2 comments
Closed

Prevent Multiple Instances from running Similtaneously #83

DylanScottCarroll opened this issue Jan 23, 2024 · 2 comments

Comments

@DylanScottCarroll
Copy link

When there is already a single instance of volctl running, it is still possible to run it again, resulting in several volume icons appearing in the system tray.

More expected behavior would be that volctl would not be able to have multiple instances running simultaneously for a given user.

I encountered this issue when spawning the tray icon from my AwesomeWM rc script. The applet would be duplicated every time the window manager was reloaded.

@raven2cz
Copy link
Contributor

The issue is not with the application itself, but rather with how the autostart script or the DEX system is being improperly utilized within your AwesomeWM approach. Many services need to be checked to determine whether they need to be launched again, a task primarily meant for the autostart script and DEX.

The first approach involves using this autostart script:
https://github.com/raven2cz/awesomewm-config/blob/master/autorun.sh

A superior alternative employs DEX:
https://github.com/raven2cz/dotfiles/blob/main/bin/start_process
https://github.com/raven2cz/dotfiles/tree/main/.config/autostart

@buzz
Copy link
Owner

buzz commented Jan 23, 2024

dup #57

@buzz buzz closed this as completed Jan 23, 2024
@buzz buzz added the duplicate label Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants