question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add option to disable writing to file system

See original GitHub issue

A clear and concise description of what the feature is. When the application is placed in a directory, where FXGL is unable to create/write files and/or directories, the FXGL application might not start, or the application runs with errors.

Describe the solution you’d like New FXGL setting/settings, that would allow disabling FXGL file writing and directory creation to file system.

Additional context (optional) Case scenario - if the FXGL application is packed in an installer, where during installation, user can select installation folder, and the user selects folder with elevated privileges, e. g. on Windows Program files, after the installation, the program does not run, because it could not create some directories and files.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fuzzysearch404commented, Jul 14, 2020

Yes. I did set it to false. I recompiled everything again, and I can’t reproduce that again. Now everything is working fine in no-access directories. Thank You for implementing this feature so quickly 😃

0reactions
AlmasBcommented, Jul 14, 2020

Is this with FS write set to false?

initLogger 133 is, so it shouldn’t get inside the if … hmmm

        if (settings.isFileSystemWriteAllowed() && settings.isDesktop() && !settings.isExperimentalNative()) {
            Logger.addOutput(new FileOutput("FXGL"), LoggerLevel.DEBUG);
        }
Read more comments on GitHub >

github_iconTop Results From Across the Web

temporarily disabling one's own filesystem write permission
I'd like to be able to (temporarily) turn off my own write permission to the filesystem I'm using. Let's say, I'm logged in...
Read more >
Disabling the Write-Behind Caching Setting Does Not Disable ...
To Completely Disable Write-Behind Caching · Right-click My Computer, and then click Properties. · Click File System, and then click the Removable Disk...
Read more >
22.2. Enabling/Disabling Write Barriers
For devices with non-volatile, battery-backed write caches and those with write-caching disabled, you can safely disable write barriers at mount time using the ......
Read more >
How to Enable or Disable Write Protection on a USB Flash Drive
FAT file system · In the Properties window, click the Sharing tab. · On the Sharing tab, click the Advanced Sharing button. ·...
Read more >
How can I completely disable writing logs to filesystem?
Either point your config and log directories there or create a union filesystem. The last alternative is to request an overhaul of ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found