3

I installed Evince, the famous PDF reader that comes pre-installed with several major GNU/Linux distributions, on Mac OS X using

 brew install evince

now, to open it, I have to type every single time "evince" on terminal. Is there any way to create an icon for that program, that could be moved in my applications folder?

migrated from stackoverflow.com Oct 12 '16 at 19:28

This question came from our site for professional and enthusiast programmers.

6

Simply use a wrapper like Platypus

  • Download and install the script wrapper Platypus.
  • Create a shell script /usr/local/bin/evince.sh with the content

    #!/bin/bash
    
    /usr/local/bin/evince
    
  • Open Platypus and create a new app like indicated in the screenshot below:

    enter image description here

  • Choose a nice icon (1024 x 1024 px linked) like this one:

    enter image description here (48 x 48 px example)

    and hit the create button

  • Save the app to an appropriate folder (e.g. /Applications) and create a Dock item
0

Try linking apps with this command:

brew linkapps evince

If there are .app-style macOS wrapper apps in its formula, it will be linked to /Applications. You can alternatively link those apps to ~/Applications with this command:

brew linkapps --local evince

You can check if linking is successful with:

ls -lrth /Applications

Now look at the last lines if there are "evince" related items in the list.

If linking was not successful, try to link it manually. You can link "evince" executable file to /Applications:

ln -s $(which evince) /Applications/Evince

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .