Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: aplannan on March 25, 2010, 03:15:42 PM
-
Using abiword as a word processor in TC 2.8.1 Would like to enable spellchecking. Is this just a matter of installing another tcz? Also, I have the abiword plugin tcz installed. Many of the plugins don't seem to work (GDict, Google Search, Wiki Encyclopedia) I'm thinking it may be due to the fact that I use opera, and abiword doesn't recognize opera as a browser. Does anyone know how to configure this, some of the plugins look handy. Thanks
andy
-
The only plugins I tested were pdf and some of the image format ones. I don't know about spellcheck.
If you start abiword from the console, and try one of the browser-related plugins, any messages?
-
Thanks for replying, No, no messages when I start abiword from a terminal (it was a good idea). Hmmm. I may install firefox just to see if they work with a more common browser. If not I might look into some of the config options with abiword. Maybe I can recompile it with the features I'm interested in.
Thanks again
Andy
-
I had a quick look at the source. At least the main abiword has three methods for opening urls, decided on compile-time and of course 100% undocumented..
If gnome is available, use a function in libgnome. If gtk >= 2.14, use gtk's open_uri. Else try from a list of FOSS browsers.
What sucks in this combo, and is pretty much undocumented, is that gtk's open_uri doesn't do zat without gvfs. I'm not sure if this is a compile-time dependency of gtk, or if it would be enough to install gvfs.tcz runtime.
Looks like I'll have to modify it for the next build, to force it to use the list and add opera there.
edit: well, it works without gvfs if firefox is installed. I see, it's because the gtk uri code was not there yet in 2.6.8.
For reference, here's the list it tries:
static char const * const browsers[] = {
"sensible-browser", /* debian */
"epiphany", /* primary gnome */
"galeon", /* secondary gnome */
"encompass",
"firefox",
"mozilla-firebird",
"mozilla",
"netscape",
"konqueror",
"xterm -e w3m",
"xterm -e lynx",
"xterm -e links"
};
So for a quick fix, symlink sensible-browser to opera.
-
After some testing, no, gtk_show_uri & gvfs can't be done runtime. Not 100% sure if it would be enough to build only the app, or if gtk as well.
Anyway, gvfs is a part of gnome, and brings a huge set of deps. Will open a bug against abiword.
-
Did you try gvfs in the repo?
-
Yeah. Made no difference.
Here's a test app if you wish to try:
#include <stdio.h>
#include <gtk/gtk.h>
int main(int argc, char **argv){
gtk_init(&argc,&argv);
GError *error=NULL;
if (!gtk_show_uri(NULL,"http://google.com",GDK_CURRENT_TIME,&error)) {
printf("Failed:\n%s\n",error->message);
}
return 0;
}
gcc -o gtkuri gtkuri.c `pkg-config --cflags --libs gtk+-2.0`