Macos – permissions to browse outside of home directory when using Mono to run exe on Mac

keepassmacmacosmono-frameworkpermissions

I'm trying to use Mono to run KeePass.exe on my mac, using the command (from KeePass directory within terminal): sudo mono keepass.exe

It runs just fine except for the fact that when browsing to select the kdbx file I can only see the folders within my user home folder.

See Printscreen: Under 'My Computer' there is only 'Personal' which is my home folder

enter image description here

I guess I'm missing something regarding permissions relating to either terminal or Mono?

Best Answer

I know exactly what is wrong, I had exactly the same issue!
1.Downloading WineBottler(That is a direct link)
2. Open the DMG, and copy Wine and WineBottler to your applications folder.
3. Download the KeePass setup file.
4. Open WineBottler
5. Click advanced in the top bar
6. Make sure it says new prefix
7. Select the box that says "This is the installer, execute it"
8. Locate the KeePassSetup.exe file from within WineBottler
9. Scroll down a little and make sure it includes the open source .Net framework mono
10. Make it include wine.app
11. In winetricks, find and check dotnet45 (MS .NET 4.0)
12. In winetricks, find and check forcemono (Force using Mono ...)
13. Give the app an identifier
14. Build your app!
15. It will take a long while (You may have to download .NET 3.0 and restart the build process)
16. Execute it, and it will copy the prefix.
17. If it closes, open it again
17. If you need plugins, copy them to ~/Library/Applcation Support/ then find the identifier
18. Done

Related Question