Skip to content

choosexe can not open filename with colons.

Because rofi -modes seems to only accept one colon!

$ rofi -show mimeopen -modes 'mimeopen:evince b:c.pdf'
The script command 'mimeopen:evince b:c.pdf' has 3 options, but needs 2: <name>:<script>.

We can either :

  • propose a modification to rofi to ignore the following colons
  • copy or link the file in /tmp before opening (but it may be surprising to see the file change)
  • or better use a temporary file whose name is defined by the process group (in order to ensure unicity) to pass the filename between caller and callee.
  • … ?
Edited by Mathieu Clabaut