opened 12:02PM - 02 Jan 22 UTC
enhancement
### Checklist
- [X] I agree to follow the [Code of Conduct](https://github.com/…flatpak/flatpak/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/flatpak/flatpak/issues) for a feature request that matches the one I want to file, without success.
### Suggestion
Some applications check for existence of file `/usr/share/anon-ws-base-files/workstation` and then depending on that slightly modify their behavior. OnionShare is an example:
https://github.com/onionshare/onionshare/blob/develop/cli/onionshare_cli/web/web.py#L360_L364
```
# In Whonix, listen on 0.0.0.0 instead of 127.0.0.1 (#220)
if os.path.exists("/usr/share/anon-ws-base-files/workstation"):
host = "0.0.0.0"
else:
host = "127.0.0.1"
```
That is currently broken for OnionShare running inside flatpak. While file `/usr/share/anon-ws-base-files/workstation` exists outside of flatpak, it does not exist inside of flatpak application data folder.
How could this be resolved?