Page 1 of 1

Using Dropbox to sync images for GUI

Posted: Fri Aug 22, 2014 2:04 pm
by Iktomi
Hello,

I've got my mudlet folder in dropbox, so that everything stays sync'd whether I'm on my Windows or Arch Linux OS. Now that I've started playing around with making a GUI for Mudlet I'd like to be able to store images in dropbox so that they can be used on either OS as well.

When specifying images using Geyser though, you give the direct path to it. Is there a way that I can use maybe getMudletHomeDirectory() or something similar to do this?

As always, your help is appreciated!

Re: Using Dropbox to sync images for GUI

Posted: Fri Aug 22, 2014 7:36 pm
by phasma
Just set a symlink and use that. It's what I do and it works fine. For Windows, it's a bit more tricky, but open a shell and type mklink /?

Will give the syntax for you.

Re: Using Dropbox to sync images for GUI

Posted: Sat Aug 23, 2014 2:35 am
by Iktomi
But I'd still have to have it looking in two different places in the script. When on Windows it's going to look for something on C:\ while on linux it's going to look for something in /home.

Re: Using Dropbox to sync images for GUI

Posted: Sun Aug 24, 2014 6:20 am
by Vadi
You can use getOS() to find out which OS you're on, and then use an appropriate path.