home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.slackware      I think its the one without Selinux crap      87,272 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 85,814 of 87,272   
   Ben Collver to All   
   sync X11 primary selection and secondary   
   07 May 22 15:29:34   
   
   From: bencollver@tilde.pink   
      
   Hi,   
      
   I would like to synchronize the X11 primary selection and secondary   
   clipboard.  My goal is to select text in rxvt and then use the   
   Edit/Paste menu to paste it into leafpad.  I installed autocutsel   
   from slackbuilds.org because it looked promising.  Then I tried the   
   following sequence of actions:   
      
   * Open rxvt   
   * Run: autocutsel -debug -verbose -selection PRIMARY   
   * Open leafpad   
   * Type text into leafpad: Howdy   
   * Press Ctrl-A to select the text   
   * Press Ctrl-X to cut the text   
   * Open another rxvt   
   * Run: uname -a   
   * Double-click to select the word Linux   
   * In leafpad, click Edit, Paste   
     It pastes: Howdy   
      
   I expected leafpad to paste "Linux".   
      
   When I run "cutsel cut" it outputs "Linux".   
   When I run "xclip -out -selection primary" it outputs "Linux".   
      
   When I run "cutsel sel" it outputs "Howdy".   
   When I run "xclip -out -selection clipboard" it outputs "Howdy".   
      
   Below is the text output from the autocutsel process:   
      
   bash-5.1$ autocutsel -debug -verbose -selection PRIMARY   
   autocutsel v0.10.1   
   Selection changed: "Howdy"   
   New value saved: "Howdy"   
   sel -> cut: "Howdy"   
   Updating buffer   
   Selection changed: "Linux"   
   New value saved: "Linux"   
   sel -> cut: "Linux"   
   Updating buffer   
      
   The second-to-the-last line of output led me to expect that   
   autocutsel copied the word Linux from the selection into the   
   clipboard, but on the contrary, the clipboard still contains the word   
   Howdy.   
      
   Can anyone recommend a different solution to synchronize my primary   
   selection to the secondary clipboard?   
      
   Thanks!   
   -Ben   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca