[Bug 1766192] Re: [snap] cannot save file under $HOME

2018-05-30 Thread Dominik Hölzl
Hello!

Ubuntu 18.04
libreoffice build ID: libreoffice-6.0.4.2-snap1

I find it weird that opening

* /home//.hidden/Document.odt DOES NOT WORK (access denied)
* /home//Documents/.hidden/Document.odt WORKS
* /home//myfolder/.hidden/Document.odt WORKS

Opening

* /home//.Hidden.odt DOES NOT WORK (access denied)

Opening

* /home//Document.odt DOES NOT WORK

 (LibreOffice complains that it can't create a lock file (which is a
hidden file), and opens the document only read only)


Opening (non-hidden) documents directly in the home directory is intended to 
only work read-only?


Seems that accessing hidden files in the first level inside the home directory 
is denied.
The "home" interface for snaps doesn't allow reading/writing files to .dot 
directories directly under $HOME. This is to mitigate access to sensitive 
information. See https://docs.snapcraft.io/reference/interfaces.


We have several applications which access documents under /home//.hidden 
which now does not work any more. Of course I could move all the documents to 
/home//Documents/.hidden, but this would require all applications to be 
adjusted for that.

We also have libreoffice extensions which require accessing files in the 
.hidden directory.
If I move them to the documents directory I have to find out the path of it 
e.g. via "xdg-user-dir DOCUMENTS", but will that work inside the libreoffice 
extension with limited access?
I could create a directory with a known name directly in the home directory and 
put all the files into it, but this could confuse users if there is a directory 
which contains only a hidden directory.
Unhiding our .hidden directory could also confuse users as we store internal 
data there.

Any suggestions?

Regards,
Dominik

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1766192

Title:
  [snap] cannot save file under $HOME

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/1766192/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1751005] Re: libreoffice cannot open a document not within $HOME

2018-05-30 Thread Dominik Hölzl
Thank you!

So this behavior is freezed and I cannot expect a "fix" for this?

Opening documents directly in the home directory is intended to only
work read-only?

We also have libreoffice extensions which require accessing files in the 
.hidden directory.
If I move them to the documents directory I have to find out the path of it 
e.g. via "xdg-user-dir DOCUMENTS", but will that work inside the libreoffice 
extension with limited access?
I could create a directory with a known name directly in the home directory and 
put all the files into it, but this could confuse users if there is a directory 
which contains only a hidden directory.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1751005

Title:
  libreoffice cannot open a document not within $HOME

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1751005/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1751005] Re: libreoffice cannot open a document not within $HOME

2018-05-30 Thread Dominik Hölzl
One more issue:

Opening

* /home//.Hidden.odt DOES NOT WORK (access denied)

Opening

* /home//Document.odt DOES NOT WORK

 (LibreOffice complains that it can't create a lock file (which is a
hidden file), and opens the document only read only)


Seems that accessing hidden files in the first level inside the home directory 
is denied.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1751005

Title:
  libreoffice cannot open a document not within $HOME

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1751005/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1751005] Re: libreoffice cannot open a document not within $HOME

2018-05-30 Thread Dominik Hölzl
I have installed libreoffice manually as snap with the command "sudo
snap install libreoffice".

Ubuntu 18.04

libreoffice build ID: libreoffice-6.0.4.2-snap1

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1751005

Title:
  libreoffice cannot open a document not within $HOME

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1751005/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1751005] Re: libreoffice cannot open a document not within $HOME

2018-05-30 Thread Dominik Hölzl
Hello!

I find it weird that accessing

* /home//.hidden/Document.odt DOES NOT WORK
* /home//Documents/.hidden/Document.odt WORKS
* /home//myfolder/.hidden/Document.odt WORKS

We have several applications which access documents under
/home//.hidden which now does not work any more. Of course I could
move all the documents to /home//Documents/.hidden, but this would
require all applications to be adjusted for that.

Any suggestions?

Regards,
Dominik

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1751005

Title:
  libreoffice cannot open a document not within $HOME

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1751005/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs