Skip to content

Commit

Permalink
Makes X11 be loaded conditionally at runtime (fixes #120)
Browse files Browse the repository at this point in the history
On 10.9+ X11 is no longer supported, yet when accessing `/usr/X11/lib/libX11.6.dylib`, it prompts user to download X11, concretely to download XQuartz.
XQuartz installs into `/opt/X11/lib/libX11.6.dylib` which is in the list.
  • Loading branch information
fikovnik committed Apr 27, 2015
1 parent 6424380 commit dd1624b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ShiftIt/X11WindowDriver.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@
static char *X11Paths_[] = {
"libX11.6.dylib",
"/usr/local/X11/libX11.6.dylib", // anyone?
"/opt/X11/lib/libX11.6.dylib", // XQuartz, needs be tried before regular
"/usr/X11/lib/libX11.6.dylib", // regular
"/opt/X11/lib/libX11.6.dylib", // XQuartz
"/opt/local/X11/lib/libX11.6.dylib", // MacPorts?
"/sw/X11/lib/libX11.6.dylib", // Fink?
};
Expand Down

0 comments on commit dd1624b

Please sign in to comment.