[Feature Request] Add MacOS support
sdushantha opened this issue · comments
So far I have tried 3 image viewers:
-
macfeh
- Does not reload the image when the image gets altered. The normalfeh
has an--auto-reload
option, butmacfeh
doesnt, and it does not look it will be added if we ask for it because the developer has not been active for a really long time. -
qlmanage
(Quick Look) - Does not reload the image when the image gets altered -
Preview.app - Is able to reload the image using a small hack. But the down side of using preview is that it does not look minimal. It is possible to hide the tool bar and some of the junk, but I am not sure if it is possible to do so from the command line.
To change the focus from the image viewer back to the terminal, we can of course use Apple Script.
I found out that imagemagick
is not able to find fonts without Ghostscript on macOS.
After installing Ghostscript (brew install gs
), doing convert -list font
gave me the fonts.
Something else that I found out is that mktemp
works differently on macOS. As you see in the screenshot (title of Preview.app), mktemp
is not replacing the XXXXXX with the random letters for files.
Dropping this idea, because it takes too much time beceause I have to turn off and turn my laptop again to switch OS, to test the code on macOS and then test it on Linux to make sure it works fine. I am going to keep the macos-beta branch in case someone wants to work on it or if I ever go back to working on it :)
I will not be creating a macOS version because for some strange reason, imagemagick
is not able to find all the installed fonts on macOS. So I dont see the point of making a macOS version if the user cant see all their fonts.
CC @XOKP
Thanks for your information, your effort on it is appreciated.