Using Dropbox to sync images for GUI

Post Reply
Iktomi
Posts: 46
Joined: Sat Sep 03, 2011 4:00 am

Using Dropbox to sync images for GUI

Post 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!

phasma
Posts: 191
Joined: Sat Aug 03, 2013 7:00 pm
Discord: phasma#4694

Re: Using Dropbox to sync images for GUI

Post 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.

Iktomi
Posts: 46
Joined: Sat Sep 03, 2011 4:00 am

Re: Using Dropbox to sync images for GUI

Post 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.

User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Re: Using Dropbox to sync images for GUI

Post by Vadi »

You can use getOS() to find out which OS you're on, and then use an appropriate path.

Post Reply