'session id' format string #109
Closed
Comments
I was going to attach a patch file, but I don't find anywhere to do that. Since the patch is short, I'll just paste it in here instead.
|
feh --multiwindow all runs in one process, yes. But since there is no user-visible filelist in that mode, I think the PID should suffice there as well. |
derf
added a commit
that referenced
this issue
Nov 13, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When specifying --actions, it is sometimes important to be able to specify which instance of feh they are attached to.
For example, I want to write an action which allows me to do simple multiple selection within the current filelist. (essentially building a sub-filelist, which I can later perform an action on.). So it's important to identify which feh instance the selection belongs to, that makes it possible to associate the selection with feh instance correctly, and also for the later action to use the correct selection.
I think process id is suitable for identifying sessions, and '%V' is fairly logical in association with the existing %v; failing that, %I (as in 'session ID') works.
I don't know how your multiwindow setup works -- if that's all in the one process, I guess the window XID would be more appropriate. For now, I've implemented a very simple patch mapping %V to process id, and attached it to this issue.
The text was updated successfully, but these errors were encountered: