Copy and paste between X11 and other apps on Mac
Posted by ark, ,
If you find you can't cut and paste between regular apps and X11 in Mac OSX (Leopard?) then it might be because you installed Xcode. You can fix this with this simple fix

defaults write org.x.X11 sync_clipboard_to_pasteboard -boolean true
defaults write org.x.X11 sync_pasteboard -boolean true
defaults write org.x.X11 sync_pasteboard_to_clipboard -boolean true
defaults write org.x.X11 sync_pasteboard_to_primary -boolean true
defaults write org.x.X11 sync_primary_on_select -boolean true

However, you can't cut and paste so typing all that in is going to be annoying eh? I had a hard time finding something to create a simple text file, TextEdit won't let you save as TXT, so in the end I saved as HTML then edited it in emacs in an xterm and then X11 copy/pasted it to my command line, restarted X11 and bam, it works.

Another option is just to get the latest XQuartz mine was 2.1.6 and the latest right now seems to be 2.4.0.

Comments

Posted Thursday 25 March 2010 Share