2

I have been editing documents downloaded from Dropbox in LibreOffice on my M10 tablet, but I can't find the documents in the user space on /phablet/Documents/ etc. Same thing with files downloaded through Firefox, can't locate them on the hard drive in the File Manager or any other Ubuntu Touch apps.

Is there a way to save these files in the folders accessible under /Phablet/?

muru
  • 197,895
  • 55
  • 485
  • 740
tomoqv
  • 829

3 Answers3

1

I just saved a test document in LibreOffice to take a look at this. I tried to save it in phablet but via FileManager I found it in /home/phablet/.local/share/libertine-container/user-data/puritine

I guess I can see the logic of that for security but it isn't great for users in cases like this.

I can't see an easy way to break out of the libertine jail and save wherever you want- which I guess is a feature more than a bug.

The best thing might be to try mount --bind. It's a way to mount one folder as another. I am not so familiar with it, but it is described as a solution to a similiar problem here.

One thing to be careful of, the accepted answer to this question says that if you do mount chroot directories ". You will need to take extra care when doing so, if you wish to delete the chroot from your phone, or perform other destructive actions".

Hope that helps.

Jack
  • 532
1

Instead of mounting /home/phablet/.local/share/libertine-container/user-data/puritine somewhere in home you can also create a softlink to that directory in /home/phablet/Documents

cd ~/Documents;ln -s /home/phablet/.local/share/libertine-container/user-data/puritine Puritinedocs should do the trick.

Edit: Just checked, this works and file permissions are fine. As a bonus the softlinks will survive reboots.

Jurjen
  • 196
  • Ah, that's interesting. I thought that symlinks wouldn't work from a chroot, based on the accepted answer here. I must check this out later on. – Jack Jun 08 '16 at 08:51
  • That they won't work from a chroot sounds logical but this is to an existing folder.... – Jurjen Jun 08 '16 at 09:32
  • Addition: I'm not shure about file ownership in the Puritine libertine-container filesystem, will check later today. – Jurjen Jun 08 '16 at 09:50
0

You XDG documents folders are automatically bind-mounted into the Libertine container. In other words, if you save a LibreOffice document in your Documents folder, it's saved to /home/phablet/Documents.

The XDG documents folders include Documents, Music, Pictures, and Videos.

Stephen M. Webb
  • 747
  • 5
  • 11