Hi,
I am trying sandboxing an Xquartz based application.
The library problem is easy to solve but I get to other errors that I do not
understand.
Any suggestion ?
All the best
Alain Filhol
1- Libraries
—————-
The app asks for: /opt/X11/lib/libXt.6.dylib
so I added the entitlements
<key>com.apple.security.temporary-exception.files.absolute-path.read-only</key>
<array>
<string>/opt/X11/</string>
</array>
This is Okay… Great !
2- DISPLAY
—————-
Then I get the error
Abnormal exit (code 9) : Cannot open X display. Check DISPLAY
environment variable.
Since $DISPLAY =
/private/tmp/com.apple.launchd.Ua4EJ63Uqs/org.macosforge.xquartz:0
I added the following entitlements with no change :
<string>/private/tmp/</string>
Then I tried to launch the application as follows:
myapplication -display $DISPLAY
The error message is different —> No such file or directory
/Users/filhol/Library/Developer/Xcode/DerivedData/FullProf4Mac-aafxyuyegfuwkqcvilrribshxtke/Build/Products/Release/FullProf4Mac.app/Contents/Resources/FullProf4Mac.sh:
line 558:
/Users/filhol/Library/Developer/Xcode/DerivedData/FullProf4Mac-aafxyuyegfuwkqcvilrribshxtke/Build/Products/Release/FullProf4Mac.app/Contents/Resources/FullProf_Suite/tfp
-display /private/tmp/com.apple.launchd.Ua4EJ63Uqs/org.macosforge.xquartz:0:
No such file or directory
Any suggestion ?
3- X11 font
—————
The default X11 font is not suitable to my application thus the launch script
edits .Xresources or .Xdefaults
However to make the change active I found that I must do the following
/opt/X11/bin/xrdb .Xresources or the other modified file
This gives the error
/opt/X11/bin/xrdb: Operation not permitted
/opt/X11/bin/xrdb: Can’t open display
‘/private/tmp/com.apple.launchd.Ua4EJ63Uqs/org.macosforge.xquartz:0’
event if I add the entitlement :
<key>com.apple.security.temporary-exception.files.absolute-path.read-write</key>
<array>
<string>/private/tmp/</string>
</array>
------
Dr. Alain Filhol (Computer scientist)
Institut Laue-Langevin, EPN Campus
CS 20156, 71 ave des Martyrs
F-38042 Grenoble cedex 9
<[email protected]>, Office: ILL19-206
Tel:+33 4.76.20.71.56, Fax: +33 4.76.20.76.48
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com
This email sent to [email protected]