brazdil / volnoti

Lightweight volume notification for Linux
GNU General Public License v3.0
145 stars 36 forks source link

Failed to get primary name message is confusing #6

Open stephenh opened 10 years ago

stephenh commented 10 years ago

I already had volnoti running, but had forgotten about it, so when trying to start another one, kept getting the "Failed to get primary name" error:

https://github.com/davidbrazdil/volnoti/blob/master/src/daemon.c#L276

I found this very confusing and spent awhile trying to find out why that would happen...turns out I just already had volnoti running (duh).

Appending a "volnoti may already be running" to the end of the error message on line 276 would be helpful for new/forgetful users like myself.

nunezfrnc commented 6 years ago

When I finished compiling the indicator and runned it as so this error appeared, what can I do?:

$volnoti ERROR: Failed to get the primary well-known name. (RequestName result != 1)

CaptainAsbestos commented 3 years ago

same issue here, just installed for the first time.

victoriastuart commented 1 year ago

For anyone encountering that error message, it likely arises due to a volnoti instance already present.

[victoria@victoria ~]$ date
Sun Jun 11 12:41:01 PM PDT 2023

[victoria@victoria ~]$ volnoti &
[3] 7099

[victoria@victoria ~]$ volnoti &    ## attempt to start another instance
[4] 7110
[3]   Done                    volnoti
[victoria@victoria ~]$ ERROR: Failed to get the primary well-known name. (RequestName result != 1)