Board index FlightGear Development Nasal

io.write_properties() ?  Topic is solved

Nasal is the scripting language of FlightGear.

io.write_properties() ?

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

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: 269
Joined: Fri May 19, 2017 8:17 pm
Location: Uruguay - SUMU
Callsign: CX-BEX
Version: next
OS: Ubuntu 18.04.4

Re: io.write_properties() ?

Postby wlbragg » Mon Jul 03, 2017 12:55 am

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 and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7586
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: io.write_properties() ?  

Postby rleibner » Mon Jul 03, 2017 1: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: 269
Joined: Fri May 19, 2017 8:17 pm
Location: Uruguay - SUMU
Callsign: CX-BEX
Version: next
OS: Ubuntu 18.04.4

Re: io.write_properties() ?

Postby clm76 » Tue Jul 04, 2017 7: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: 204
Joined: Tue Oct 30, 2012 9:18 pm
Location: France - LFOH
Callsign: F-GCLM
Version: 2020.4.0
OS: Linux Mint 20.2


Return to Nasal

Who is online

Users browsing this forum: No registered users and 3 guests