Installing thaiWitter on Mac and Windows is quite easy. You just install a Firefox extension, and go to Install page to install thaiWitter. Pretty simple! But on Linux it requires some more steps.
I will start with a fresh install of Ubuntu 9.10.
The first 2 steps are just the same as other OS. Just install Mozilla Prism Firefox extension. After restarting your browser, go back to thaiWitter installation page and click on the link in step 2. Just create some shortcuts as usual.
You will get a .desktop file like this.
Double click on it. A pop-up will open. Just mark it as trusted.
The .desktop file will turn into an icon.
But it’s not ready yet. Right click on the icon and click Properties.
In the command field, you’ll see the first word that says "/usr/lib/firefox-3.5.3/firefox".
Change that word into xulrunner. It should now say:
xulrunner -app ........................
Close that window. Now you can double click on thaiWitter’s icon and enjoy!
Extra: Use Ubuntu’s notification instead.
(for advanced users
)
You can hack Prism a bit to make it use libnotify to display nice notification boxes, like in this screenshot:
Looks nice?
To do it, go to your profile folder, go into extensions, then refractor@developer.mozilla.org, then prism, and then components.
Make a backup of nsPlatformGlue.js, and then open the file nsPlatformGlue.js using a text editor. Look for this line:
var alertListener = (!aListener) ? null :
Before that line, add my code:
/* use system notify instead */
if (!textClickable && !aListener) {
try {
var exec = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
exec.initWithPath ('/usr/bin/env');
if (exec.exists()) {
var process = Components.classes["@mozilla.org/process/util;1"].createInstance(Components.interfaces.nsIProcess);
var pythonCode = 'import sys, pynotify, json; pynotify.init("Prism"); sys.exit(not pynotify.Notification(json.loads(sys.argv[1]), json.loads(sys.argv[2])).show())';
var args = ['python', '-c', pythonCode, uneval(aTitle), uneval(aText)];
process.init(exec);
var exitvalue = process.run(false, args, args.length);
if (exitvalue) throw new Error(".__.");
} else {
throw new Error("._.");
}
return;
} catch(e) {
}
}
Save it. Open thaiWitter (or any other prism app that has notifications) and enjoy the new look!
If you can’t access thaiWitter from Linux, but can access from other OS.
This also happened to me. See this blog post: Read This If You Can’t Access Some Websites From Ubuntu Gutsy Gibbon