6

I installed Evince, the 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?

4 Answers 4

7

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
1

You can use the Apple ScriptEditor for a simple start-up script. Enter this into the editor: do shell script "/usr/local/bin/evince" Afterwards export it as "Evince" (File->Export) and mark the following

  • File Format: Application
  • Option: Run only
  • Code sign: Sign to run locally

The icon can be changed in the Finder with properties (CMD+i). Paste the correct icon (512x512 pixels) into the icon on the top left. This also works for any other brew installations, like e.g., Octave, Maxima, etc.

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
1
  • this answer doesn't work in 2023 on macOS ventura. I get Error: Unknown command: linkapps
    – xdavidliu
    Mar 28, 2023 at 9:34
0

In 2024, the solution is to use --cask on the command line when installing: https://superuser.com/a/1725928/419211

You must log in to answer this question.

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