[Github-comments] [geany/geany] Feature request: Ability to open files in(to) a specific open session when using `geany` at commandline (#1834)

elextr notifications at xxxxx
Fri Apr 20 04:56:48 UTC 2018


The socket file is in /tmp to maximise the chances its on a file system that supports sockets, home directories may be on Samba windows mounts that don't.

To not conflict with other things in /tmp it is a random name created by `tmpfile()`, so Geany locates it by a link which has a known name in the configuration directory you specify with `-c` (or your `~/.config/geany` if no `-c`).  

If the configuration does not contain a link with the right name Geany will consider itself a new "master" as you called it, and make another socket.  The `--socket_file` option is to allow a command line command to nominate which instance it is to open files in.

In your use-case of one "proper" instance and one scratch instance you would be best to use differing configs for each, so each has a socket and so you can then nominate on the terminal which one to use.  If most of the command line opens are in the scratch version, have it use your home config, which is the default, and so you don't have to specify it in the majority of cases on the command line.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1834#issuecomment-382976268
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180419/778fa6cd/attachment.html>


More information about the Github-comments mailing list