Way to send a nostr: url to the currently running gossip #163

Open
opened 2023-01-25 14:37:17 +13:00 by mikedilger · 0 comments
mikedilger commented 2023-01-25 14:37:17 +13:00 (Migrated from github.com)

If you launch gossip twice, there will be two competing programs hitting the same sqlite database. This isn't a good thing.

More to the point, if you click on a nostr: URL in your browser, it would be nice if the currently running gossip handled that. Part of this requires desktop setup (e.g. exo-open, mimeapps.list, etc). The other part requires gossip to be launched in a way that detects the existing running gossip, sends the URL to it, and exits.

We might be able to do this by opening a socket under /var/run in unix environments, and if it is found, write the url into it and quit. Not sure about MS windows.

Needs research.

If you launch gossip twice, there will be two competing programs hitting the same sqlite database. This isn't a good thing. More to the point, if you click on a nostr: URL in your browser, it would be nice if the currently running gossip handled that. Part of this requires desktop setup (e.g. exo-open, mimeapps.list, etc). The other part requires gossip to be launched in a way that detects the existing running gossip, sends the URL to it, and exits. We might be able to do this by opening a socket under /var/run in unix environments, and if it is found, write the url into it and quit. Not sure about MS windows. Needs research.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nostr/gossip#163
No description provided.