In article <20101128115640.ga18...@yelena.nicm.ath.cx>, Nicholas Marriott <nicholas.marri...@gmail.com> wrote:
> There was something with some environment variable IIRC, find out what > pbcopy and pbpaste depend on. The problem is calling daemon(). Basically, once you call daemon(), you can't use any GUI functionality. <http://developer.apple.com/library/mac/#technotes/tn2005/tn2083.html%23S ECDAEMONVSFRAMEWORKS> This is a fix for the problem under 10.6 (obviously it needs conditionalizing): <https://gist.github.com/644805/701666ac560f936a8e4c590ad359530b231c2108> I didn't write that, but it's the same as what Apple's patch to screen does. The _vproc* functions aren't declared in a public header file though they are open source: <http://opensource.apple.com/source/launchd/launchd-329.3.2/launchd/src/v proc_priv.h> The function used above (_vprocmgr_detach_from_console) is on defined on 10.6. Apple's screen patches for 10.5 call another private vproc function (_vprocmgr_move_subset_to_user). This also acts as a daemon() replacement but doesn't seem to fix the problem with pbcopy/pbpaste not working - it doesn't work in screen either. vproc doesn't exist at all on 10.4 and earlier. -- Nicholas Riley <njri...@illinois.edu> ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users