SL File Dialog version 0.04 released

October 15, 2006

Minor fixes:

  • Make it compile correctly on 64 bit systems.
  • Added JPG to the list of extensions.

Get it here.


More File Dialog Improvements

October 12, 2006

The next release tries to improve user friendliness. I’m trying to make it as easy to install and use as possible, so I’ve been improving error handling to make sure that when something goes wrong, the user gets properly notified.

Update: Version released.
Here’s what’s new:
Read the rest of this entry »


Improved File Dialog

October 12, 2006

The original dialog wasn’t very easy to use or install, and was rather buggy, so I’ve been making some improvements.

Turns out, as a part of an upload, SL opens the file multiple times. That resulted in the file dialog popping up twice for an image upload. This was fixed by adding a table to upload_hook.c, with the filename to expect, and the number of times to ignore further matches.

This introduced a new problem: If the dialog was cancelled, or the script somehow failed, the next few attempts to upload something would be ignored. So now upload_hook.c also checks the return code, and if it’s not 0 assumes it didn’t go well, and doesn’t do the ignoring part.

sl_upload.sh has been greatly improved, and now handles images, sound files and .bhv files (not tested). Support for Zenity (gnome dialog) has been added as well.

The Makefile has been improved to do all the installation parts automatically, so that you only need to run ‘make’, and add the line it tells you in the secondlife script.

One problem remains: If you accept a file in the dialog, then cancel the upload in SL it will not work correctly. I’m not sure how to fix that yet, but I think it’s a nice improvement over no dialog at all anyway 🙂

Here’s the source. Of course, comments, suggestions and patches are welcome.


KDE Upload Dialog

October 11, 2006

Today there was another Linux meeting in SL. Tofu Linden’s presence was much appreciated, but it turns out that the file upload dialog that will be added to the Linux client will be the GTK2 one. While I welcome Linux client improvements a lot (Thanks, Tofu!), I just happen to dislike the GTK dialog quite a lot.

So I went and hacked in my own.
Update: added link to source
Read the rest of this entry »