Jump to content
Sneeze Fetish Forum

fix for broken copy/paste in chat room


haeeshoo

Recommended Posts

The chat room was down today, so what else was there to do than to fix its pesky copy/paste limitations :lol:

As hardcore chat room users know by now, copy paste in the chat room is "broken", if you have a version of java that is recent enough.

That is, you can still copy paste within the chat application, but nothing between the chat application and another application

(e.g. pasting a youtube link doesn't work anymore).

To fix this, you can do the following 3 steps on your own computer (but read the final paragraph about why perhaps you don't

want to fix it):

STEP 1. on your computer, find the file called "java.policy". I cannot tell you where to go looking as my system is different from yours.

You can probably use some "search" that is built-in your operating system to find it.

STEP 2. edit the file in a text editor (notepad if you're using windows). It should contain a section that looks as follows:

// default permissions granted to all domains

grant {

// Allows any thread to stop itself using the java.lang.Thread.stop()

// method that takes no argument.

// Note that this permission is granted by default only to remain

// backwards compatible.

// It is strongly recommended that you either remove this permission

// from this policy file or further restrict it to code sources

// that you specify, because Thread.stop() is potentially unsafe.

// See the API specification of java.lang.Thread.stop() for more

// information.

permission java.lang.RuntimePermission "stopThread";

// allows anyone to listen on un-privileged ports

permission java.net.SocketPermission "localhost:1024-", "listen";

// "standard" properies that can be read by anyone

permission java.util.PropertyPermission "java.version", "read";

permission java.util.PropertyPermission "java.vendor", "read";

permission java.util.PropertyPermission "java.vendor.url", "read";

<lots of lines cut out>

};

just before the closing };, enter the following text and save (make sure you don't make typing mistakes, or it won't work)

permission java.awt.AWTPermission "accessClipboard";

so the new file should look like:

// default permissions granted to all domains

grant {

// Allows any thread to stop itself using the java.lang.Thread.stop()

// method that takes no argument.

// Note that this permission is granted by default only to remain

// backwards compatible.

// It is strongly recommended that you either remove this permission

// from this policy file or further restrict it to code sources

// that you specify, because Thread.stop() is potentially unsafe.

// See the API specification of java.lang.Thread.stop() for more

// information.

permission java.lang.RuntimePermission "stopThread";

// allows anyone to listen on un-privileged ports

permission java.net.SocketPermission "localhost:1024-", "listen";

// "standard" properies that can be read by anyone

permission java.util.PropertyPermission "java.version", "read";

permission java.util.PropertyPermission "java.vendor", "read";

permission java.util.PropertyPermission "java.vendor.url", "read";

<lots of lines cut out>

permission java.awt.AWTPermission "accessClipboard";

};

STEP 3. close all windows of your browser, restart your browser, enter the chat room and try it out :whip:

Note that this change in JAVA's default behaviour was made on purpose by oracle (the current owners of JAVA),

because non-trusted web applications could use it to steal information from your clipboard (like: if you

copy pasted your password recently, it would still sit in the clipboard, and a java malware application could steal

it from the clipboard and store it somewhere).

It-works-for-me :showoff:

Link to comment

Thanks, this worked great for me!

Note to Windows 7 users, you will need to run notepad as an administrator or it won't let you save the changes to this file.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...