godspeed1989 / fbv

framebuffer image viewer
Other
79 stars 39 forks source link

pass the image name as shown in the help page #11

Closed sgerwk closed 3 years ago

sgerwk commented 3 years ago

These two commits add a new option -n name, or --imagename name. This is the file name as shown in the help page. Multiple image names are separated by ':'.

This is useful when the image that is displayed is the result of a conversion or a download. For example, to show a certain type of image on the virtual console I can set up a script that first converts the image to a jpeg or png temp file and displays it with fbv. Showing the name of the temp file on the help screen is not what the user expects. Rather, it should be the name of the original file.

The same happens when the image is downloaded: rather than showing the name of the temp file, the help page should rather show the url of the image. Or the alt field (in case of html), maybe.

The -n/--imagename option is for example present in feh as the --info argument. Other image viewers allow to set the X11 title, for example gwenview has the --title option. This --imagename option has the same role in fbv.