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

i336 notifications at xxxxx
Fri Apr 20 04:37:54 UTC 2018


I currently have two Geany instances open. One is being used for a dedicated project; the other is a "scratch" instance I keep open for general-purpose rapid iteration.

I don't mind using the GNOME filepicker to open/save files when working on dedicated projects, but I tend to prefer the terminal for speed when I'm rapidly opening and closing things or when I need to create quick hacks without breaking mental flow.

Unfortunately, Geany wants to send *everything* to its "first instance" when invoked at the commandline. Due to coincidence, apparently this is the instance with the dedicated project in it. Soooo, I get to use the terminal with my dedicated projects, but am forced to use the filepicker (over NFS!!!) when doing quick hacks. Haha.

So. I found Geany's `--socket-file` parameter, but I do not understand how to use it *as only the master Geany instance has a socket file in `/tmp`!*

```
$ ls .config/geany/
colorschemes  filedefs  geany.conf  geany_socket_darkstar__0  keybindings.conf  plugins  tags  templates
$ readlink .config/geany/geany_socket_darkstar__0    
/tmp/geany_socket.b5c4f11f
$ lsof | grep geany_socket
geany     17853       i336    5u     unix 0xc2b68240      0t0   4654382 /tmp/geany_socket.b5c4f11f
$ ls /tmp/geany_socket*
/tmp/geany_socket.b5c4f11f
$ ps aux | grep [g]eany
i336     17853  0.1  1.7 103224 36696 ?        Sl   Mar04  74:50 geany
i336     17955  0.0  1.6 105060 34036 ?        Sl   Mar04  25:23 geany
$
```

I'm curious why `--socket-file` exists at all. There are no options that allow me to start an instance with a specified socket file of my own choosing, for instance; I have to rely on Geany creating the socket file itself so I can use it.



-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180419/873f6554/attachment.html>


More information about the Github-comments mailing list