TiddlyWiki on Chrome / Ubuntu 64-bit

332 views
Skip to first unread message

Grmble

unread,
Dec 19, 2011, 8:45:31 AM12/19/11
to TiddlyWiki
Hello everybody,

it bugged me that TiddlyWiki did not work for me under Chrome, so
today I started digging around and here is what I came up with.

There are 2 problems:

* The "default" icedtea-plugin does not work with TiddlySaver.jar -
it claims not being able to decode UTF-8
* By default, the TiddlySaver applet is not "shown" under chrome

Here is what I did to solve them:

* I installed the latest SUN/Oracle JDK. Sadly these are not in the
ubuntu apt-repositories anymore but I did not find a usable java
plugin in the OpenJDK packages I have installed. The manual
installation of the SUN/Oracle JDK is explained here:
http://sites.google.com/site/easylinuxtipsproject/java
* I hacked the TiddlyWiki file in vim so the applet is displayed under
Chrome

@@ -4638,7 +3727,7 @@
var pluginInfo,tiddler; // Used to pass information to plugins in
loadPlugins()

// Whether to use the JavaSaver applet
-var useJavaSaver = (config.browser.isSafari ||
config.browser.isOpera) && (document.location.toString().substr(0,4) !
= "http");
+var useJavaSaver = (config.browser.isSafari || config.browser.isOpera
|| config.browser.isChrome) &&
(document.location.toString().substr(0,4) != "http");

I did not do much testing yet, but so far everything I use seems to
work except LessBackupsPlugin. Which is fair since it uses Firefox/IE
specific code to do it's job.

Cheers,
Juergen

Grmble

unread,
Dec 20, 2011, 11:08:37 AM12/20/11
to TiddlyWiki
I've played around with this some more and it isn't even necessary to
add the "isChrome" thing - the user agent string contains
"applewebkit", so Chrome is considered a Safari-variant, and the
Applet is displayed anyway.

So installing a non-IcedTea java plugin is all it takes for Chrome
under 64-bit Ubuntu.

Cheers,
Juergen

PMario

unread,
Dec 20, 2011, 2:20:00 PM12/20/11
to TiddlyWiki

Grmble

unread,
Dec 20, 2011, 3:20:19 PM12/20/11
to TiddlyWiki
Hi Mario,

> Did you testhttp://rumkin.com/tools/tiddlywiki/#BackupOptionsPlugin?

No, but it doesn't need any special operations so I don't see why it
would not work. Thanks for the heads up!

I just spent an evening getting LessBackupsPlugin to work. I added
file existence check / file modification time operations to the
TiddlySaver applet and used those in the plugin. Not as easy to deploy
as BackupOptionsPlugin, but with Dropbox I really like
LessBackupsPlugin with the per minute and seconds backup removed.

Kind regards,
Juergen

Eric Shulman

unread,
Dec 20, 2011, 3:30:55 PM12/20/11
to TiddlyWiki
> I just spent an evening getting LessBackupsPlugin to work.  I added
> file existence check / file modification time operations to the
> TiddlySaver applet and used those in the plugin.

Could you please share these TiddlySaver mods? I'd love to see them
added to the standard distro, as I have several plugins that could
make use of them. It would also be great if you could add a "get
directory list" function as well.

thanks,

-e
Eric Shulman
TiddlyTools / ELS Design Studios

PMario

unread,
Dec 20, 2011, 3:39:00 PM12/20/11
to TiddlyWiki
Hi Juergen,
It would be nice to have the "modified" LessBackupsPlugin too :)
-m

Grmble

unread,
Dec 20, 2011, 3:58:04 PM12/20/11
to TiddlyWiki
Hi Eric,

> Could you please share these TiddlySaver mods?  I'd love to see them
> added to the standard distro, as I have several plugins that could
> make use of them.  It would also be great if you could add a "get
> directory list" function as well.

I am a bit surprised about the interest on this, I thought this would
have a really small target audience ...

I pushed the TiddlySaver changes to my github fork. The jar is
signed, but I used a self generated certificate. Probably not good
enough for the general public.
https://github.com/grmble/tiddlywiki/tree/lessbackups_for_chrome

For illustration purposes, here is how you use the new methods:
https://github.com/grmble/MPTW/commit/02854fdfa1cca3aa3cd1a86d04030bae53f09790

The "get directory list" function should not be a problem, but it's
past my bed time, mañana ;)

Also this didn't get much testing, but it seems to work for me on 1
computer ...

Good night.

Jeremy Ruston

unread,
Dec 23, 2011, 4:33:29 AM12/23/11
to tiddl...@googlegroups.com
Just to let everyone know, I've been in touch with BidiX, who has
kindly prepared a new revision of TiddlySaver.jar based on Grmble's
patches:

https://github.com/TiddlyWiki/tiddlywiki/pull/79

Thanks everyone for your help,

Best wishes

Jeremy

> --
> You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
> To post to this group, send email to tiddl...@googlegroups.com.
> To unsubscribe from this group, send email to tiddlywiki+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
>

Martin Budden

unread,
Dec 23, 2011, 5:00:01 AM12/23/11
to tiddl...@googlegroups.com
I'll spend some time testing this - though probably not much over the
Christmas period :-)

It would be good if other could also do some testing.

Note also that grmble hasn't finished working on this yet, see:
https://github.com/TiddlyWiki/tiddlywiki/issues/78#issuecomment-3254138
so we will need to do another jar sometime in the future when he has finished.

Martin

Reply all
Reply to author
Forward
0 new messages