Difference between revisions of "Changing Clipboard Data From The Shell"

From WebOS Internals
Jump to navigation Jump to search
(New page: How to put data into the clipboard from a rooted Pre. The "'''/tmp/webkit-clipboard'''" file is where "copied" data is stored (hence clipboard). If you want to change what is on the "cli...)
 
Line 1: Line 1:
How to put data into the clipboard from a rooted Pre.
+
== Changing Clipboard Data From The Shell ==
  
The "'''/tmp/webkit-clipboard'''" file is where "copied" data is stored (hence clipboard).  If you want to change what is on the "clipboard" of the phone, just edit this file with whatever you want and when the "paste" routine is called your data will show up.
+
When you use the copy and paste function on your Pre the string has to go somewhere. Right? Well, from what I learned from '''tharris''' which was that the string goes to a file called '''webkit-clipboard''' which is located in the '''/tmp''' directory.
  
Something small but worth noting for testing
 
  
Townsend Ladd Harris (tharris- IRC)
+
== Steps ==
 +
 
 +
 
 +
'''Step One:''' Root your Pre.
 +
 
 +
'''Step Two:''' Edit your clipboard file '''(you need to at least copy and paste something once for the file to show up)'''
 +
 
 +
<pre>
 +
vi /tmp/webkit-clipboard
 +
</pre>
 +
 
 +
'''Tip:''' for more info on how to use vi, remember Google is your friend...
 +
 
 +
 
 +
 
 +
 
 +
 
 +
By: JRG

Revision as of 03:02, 3 August 2009

Changing Clipboard Data From The Shell

When you use the copy and paste function on your Pre the string has to go somewhere. Right? Well, from what I learned from tharris which was that the string goes to a file called webkit-clipboard which is located in the /tmp directory.


Steps

Step One: Root your Pre.

Step Two: Edit your clipboard file (you need to at least copy and paste something once for the file to show up)

vi /tmp/webkit-clipboard

Tip: for more info on how to use vi, remember Google is your friend...



By: JRG