Hi guys,
maybe that I found a way to change the default folder as you ask. I have a TS259PRO+ but I think it may work also for other models
The real problem is that it is not permanent...if you stop the PhotoStation app and then you restart it the changes you made will be lost.
Following the steps you need to do:
1) Create a new share if you don't have one to use. In example I create the share FotoAlbum
2) connect using ssh and the admin user to your device
3) create a simbolic link in the root of the device:
cd /
[/] # ln -s /share/FotoAlbum Qfotoalbum
[/] # ls -lrth Q*
lrwxrwxrwx 1 admin administ 17 Mar 13 16:02 Qmultimedia -> /share/Multimedia/
lrwxrwxrwx 1 admin administ 16 Apr 5 13:22 Qfotoalbum -> /share/FotoAlbum/4) edit the file /etc/config/def_share.info adding the definition for you new share:
[/] # vi /etc/config/def_share.info [SHARE_DEF]
defPublic = Public
defDownload = Download
defMultimedia = Multimedia
defRecordings = Recordings
defUsb = Usb
defWeb = Web
defFotoAlbum = FotoAlbumI have added the last line
5) Edit the config file of the app
[/] # cd /mnt/ext/opt/photostation2/api/libs/make a security copy of the file inc_common.php
[/mnt/ext/opt/photostation2/api/libs] cp inc_common.php inc_common.php.ORIG6) edit the file inc_common.php
[/mnt/ext/opt/photostation2/api/libs] vi inc_common.phpchanging Multimedia with FotoAlbum starting from the line
//define('MS_FILE_ROOT','/share/QfMultimedia');In my config I obtained the following lines :
.....
//define('MS_FILE_ROOT','/share/Qfotoalbum');
$MSShareName = exec(CMD_PATH_GETCFG . ' SHARE_DEF defFotoAlbum -d Qfotoalbum -f /etc/config/def_share.info');
$MSSharePath = exec(CMD_PATH_GETCFG . ' '.$MSShareName.' path -f /etc/config/smb.conf');
if ($MSSharePath != '')
define('MS_FILE_ROOT',$MSSharePath);
else
define('MS_FILE_ROOT','/share/Qfotoalbum');
.....
7) Make a copy of the new configuration file so if you have to restart the application you have only to restore this copy of the file :
[/mnt/ext/opt/photostation2/api/libs] cp inc_common.php inc_common.php.NEWObviously the Photo Station app was running while you made the changes otherwise you will loose them as soon as you start it.
Hope this helps
Bye bye
Carlo