How do I cause standalone X11 apps to use MacPorts X11?
Jeremy Huddleston Sequoia
jeremyhu at macports.org
Wed Mar 26 11:28:20 PDT 2014
On Mar 26, 2014, at 10:22, Jeremy Lavergne <jeremy at lavergne.gotdns.org> wrote:
> From the users list: some applications are pulling up the system stub X11 indicating that X11 is no longer available, even though MacPorts was used to install xorg-server.
>
> Is there a recommended solution to get MacPorts’ X11 to be used instead of the system stub?
The stubs are there for projects that linked against /usr/X11. All you really need to do is setup symlinks to redirect them to your MP prefix. I recommend starting with the XQuartz hook (which is installed on the system to setup the links to /opt/X11) and then just changing them to the MacPorts prefix (/opt/local in the example below):
sudo port -v install xorg
launchctl load -w /Library/LaunchAgents/org.macports.startx.plist
sudo /usr/X11/libexec/xquartz_postinst.sh
sudo rm /usr/X11
sudo rm /usr/X11R6
sudo ln -s /opt/local /usr/X11
sudo ln -s /opt/local /usr/X11R6
Note that loading the launchd.plist requires logout and login for $DISPLAY to propagate.
--Jeremy
> Begin forwarded message:
>
>> From: Kevin Reid <kpreid at switchb.org>
>> Subject: Re: How do I cause standalone X11 apps to use MacPorts X11?
>> Date: March 26, 2014 at 13:12:54 EDT
>> To: MacPorts Users <macports-users at lists.macosforge.org>
>>
>> On Mar 26, 2014, at 10:07, Jeremy Lavergne <jeremy at lavergne.gotdns.org> wrote:
>>
>>> This might really depend on the application: is it checking for x11 or giving up based on the OS?
>>
>> The dialog does not come from the application but from the system-provided X11.app (this is observable by Dock/menu bar) which is a nonfunctional stub (this is what my research says).
>>
>> It sounds like the assumption is that when you install third-party X11 as instructed by the dialog, it will _replace_ the system-provided X11. But MacPorts doesn't replace system files as a rule -- I'm looking for a solution which fits into MacPorts's way of working.
>>
>> --
>> Kevin Reid <http://switchb.org/kpreid/>
>>
>> _______________________________________________
>> macports-users mailing list
>> macports-users at lists.macosforge.org
>> https://lists.macosforge.org/mailman/listinfo/macports-users
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4145 bytes
Desc: not available
URL: <https://lists.macosforge.org/pipermail/macports-dev/attachments/20140326/941aad1c/attachment-0001.p7s>
More information about the macports-dev
mailing list