Great, so now it works with calc and other apps, but “just” not with Android Studio?
Then try one of these two solutions:
-
Create a Python or Apple Script to open Android Studio. If this script works, then run this script with XRun. (Recommended, this is what I would do)
-
Instead of XRun, use a double click on the Android App icon:
XClick | | #doubleclick