Investigating this patch to make tmux work with pbcopy/pbpaste, felt
that I should let macports know about this issue...


---------- Forwarded message ----------
From: Nicholas Riley <[email protected]>
Date: Sun, Nov 28, 2010 at 8:09 AM
Subject: Re: OSX 10.6.5 , Terminal.app, iTerm.app pbpaste, pbcopy do
not work under tmux
To: [email protected]


In article <[email protected]>,
 Nicholas Marriott <[email protected]> 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 <[email protected]>


------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-users
_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Reply via email to