"Keep in Dock" fails for an Automator app

Discussion in 'Mac Apps and Mac App Store' started by alfonso78, Apr 19, 2017.

  1. alfonso78 macrumors newbie

    Apr 19, 2017

    I'm trying to Keep in Dock a shell script that I turned into an app using Automator.

    The script uses mono (http://www.mono-project.com/) to launch KeePass (http://keepass.info/)

    After a ton of errors, I found this instructions to create a proper app:

    Now I have an app with the right icon that shows in Launchpad but if I click "Keep in Dock" and try to launch it from the doc, it will open a terminal and call mono without any parameters, so obviously KeePass will not start.

    Any idea?

    In Automator, I select Workflow, "Run Shell Script", I substitute "cat" with my script, i.e. /Users/me/Downloads/KeePass-2.35/KeePass.sh

    Then I save in Automator choosing Application as File Format.

    The script /Users/me/Downloads/KeePass-2.35/KeePass.sh is as follows:

    /Library/Frameworks/Mono.framework/Versions/Current/Commands/mono /Users/me/Downloads/KeePass-2.35/KeePass.exe

    When I click on the icon in the Dock (which has lost its specific icon after clicking "Keep in Dock") a Terminal is opened and I can read:

    Last login: Wed Apr 19 21:20:09 on ttys002
    mac:~ me$ /Library/Frameworks/Mono.framework/Versions/4.8.0/bin/mono-sgen32 ; exit;
    Usage is: mono [options] program [program-options]​

    (interestingly, I tried also Script Editor. It would work as script but exporting it as an app always failed).
    (other weird side-note, changing the app icon was also hard, all article did not work until i found this: )
  2. Rigby macrumors 601

    Aug 5, 2008
    San Jose, CA
    I don't have a direct answer, but if you haven't yet, you may want to check out KeepassXC as an alternative to Keepass. It doesn't require Mono and has most of Keepass' features (including autotype).
  3. alfonso78 thread starter macrumors newbie

    Apr 19, 2017
    Thank you. I was only aware of KeePassX.
    Maybe it's a sill question, but how do you establish how trustworthy the porting is?
  4. Rigby macrumors 601

    Aug 5, 2008
    San Jose, CA
    Well, it's open source, just like the Windows Keepass. In theory you can get the source from Github and audit and compile it yourself. ;) Personally I don't use any encryption software that isn't open source.

Share This Page