Board index FlightGear Development Nasal

io.write_properties() ?  Topic is solved

Nasal is the scripting language of FlightGear.

io.write_properties() ?

Postby rleibner » Sun Jul 02, 2017 11:15 pm

Hi guys,

When I run
Code: Select all
var f=io.write_properties("/home/rodolfo/spoken_atc.xml", "/instrumentation/comm");
print(f);

nothing occurs. Looking the fgfs.log, it reads
Code: Select all
io:5:/build/flightgear-4kSh0U/flightgear-2017.3.0~13065+git0855f0414/src/Main/fg_commands.cxx:825:savexml: writing to 'Path "/home/rodolfo/spoken_atc.xml"' denied (unauthorized directory - authorization no longer follows symlinks)

What symlink?? I have specified the absolute path "/home/rodolfo/spoken_atc.xml" !

Any clue?
Rodolfo
*************************
Non-shared knowledge is lost knowledge
User avatar
rleibner
 
Posts: 222
Joined: Fri May 19, 2017 7:17 pm
Location: Uruguay - SUMU
Callsign: CX-BEX
Version: 2180.3.0
OS: Ubuntu 17.10

Re: io.write_properties() ?

Postby wlbragg » Sun Jul 02, 2017 11:55 pm

unauthorized directory - authorization no longer follows symlinks)


I think the key here may be the portion about "unauthorized directory". "authorization no longer follows symlinks" may be referring to the fact that the location your trying to save to are not defined in the allowed directories or locations.

I remember recently seeing something about this in another thread or maybe the developers mailing list.

There was also a wiki article I believe outlining the allowed locations to save data.
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
User avatar
wlbragg
 
Posts: 4076
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Debain/nVGT640

Re: io.write_properties() ?  

Postby rleibner » Mon Jul 03, 2017 12:54 am

yeah ! :D
Thanks for the tip, wlbragg . It seems that $FG-HOME/Export is one of the few places where Nasal can put a file!
SOLVED ! :)
Rodolfo
*************************
Non-shared knowledge is lost knowledge
User avatar
rleibner
 
Posts: 222
Joined: Fri May 19, 2017 7:17 pm
Location: Uruguay - SUMU
Callsign: CX-BEX
Version: 2180.3.0
OS: Ubuntu 17.10

Re: io.write_properties() ?

Postby clm76 » Tue Jul 04, 2017 6:24 am

Hi rliebner,

It's not allowed to write into "fg-aircraft" or "fg-current".
The only free places are in "fg-home".
On my computer (linux mint), I store flight plans, comm and nav memories in "/home/chris/.fgfs/aircraft-data".
clm76
 
Posts: 141
Joined: Tue Oct 30, 2012 8:18 pm
Location: France - LFOH
Callsign: F-GCLM
Version: 2018.3.0
OS: Linux Mint 18.3


Return to Nasal

Who is online

Users browsing this forum: No registered users and 2 guests