Re: lyx changes the file access privileges

2018-12-17 Thread Pavel Sanda
On Sun, Dec 16, 2018 at 05:56:26PM +0100, paolo m. wrote: > paolo m. wrote: > > > As i change a lyx file name (say test1.lyx ) with a new name (say > > test2.lyx) , by the command 'file -> save as', the new file created has > > the usual access mode, but, when saved, its mode change so that is

Re: lyx changes the file access privileges

2018-12-16 Thread paolo m.
paolo m. wrote: > As i change a lyx file name (say test1.lyx ) with a new name (say > test2.lyx) , by the command 'file -> save as', the new file created has > the usual access mode, but, when saved, its mode change so that is > inaccessible to groups and to the world. That is not only true

Re: lyx changes the file access privileges

2018-12-07 Thread Pavel Sanda
On Sat, Nov 24, 2018 at 10:11:37PM -0500, Richard Kimberly Heck wrote: > > I blame global warming. > > > I do not believe LyX sets file permissions itself. The write routine > simply uses basic_ofstream, which just creates the file using the > current umask, or whatever other default permissions

Re: lyx changes the file access privileges

2018-11-30 Thread Daniel
On 30/11/2018 14:33, Daniel wrote: On 24/11/2018 22:05, paolo m.  wrote: As i change a lyx file name (say test1.lyx ) with a new name  (say test2.lyx) , by the command 'file -> save as', the new file created has the usual access mode, but, when saved, its mode change so that is inaccessible to

Re: lyx changes the file access privileges

2018-11-30 Thread Daniel
On 24/11/2018 22:05, paolo m. wrote: As i change a lyx file name (say test1.lyx ) with a new name (say test2.lyx) , by the command 'file -> save as', the new file created has the usual access mode, but, when saved, its mode change so that is inaccessible to groups and to the world. That does

Re: lyx changes the file access privileges

2018-11-28 Thread Jean-Marc Lasgouttes
Le 28/11/2018 à 18:13, Richard Kimberly Heck a écrit : Yes, QFile::setPermissions:     http://doc.qt.io/archives/qt-4.8/qfile.html#setPermissions We can use QFile::permissions to get the permissions of the original file, if we want to do that. Presumably, we could create simple wrappers

Re: lyx changes the file access privileges

2018-11-28 Thread Richard Kimberly Heck
On 11/28/18 11:01 AM, Jean-Marc Lasgouttes wrote: > Le 28/11/2018 à 15:23, Kornel Benko a écrit : >> I fear, we have to wait until the c++17 is available. >> What we do now, is calling >> ofstream ofs(encoded_fname.c_str(), ios::out|ios::trunc); >> write(ofs); >> We are unable to set own

Re: lyx changes the file access privileges

2018-11-28 Thread Jean-Marc Lasgouttes
Le 28/11/2018 à 15:23, Kornel Benko a écrit : I fear, we have to wait until the c++17 is available. What we do now, is calling ofstream ofs(encoded_fname.c_str(), ios::out|ios::trunc); write(ofs); We are unable to set own permissions. With c++17 it will be available to set them.

Re: lyx changes the file access privileges

2018-11-28 Thread Kornel Benko
Am Dienstag, 27. November 2018 16:23:51 CET schrieb Daniel Kian Mc Kiernan (the best Daniel of the bunch) : > > On 11/26/18 11:23 PM, paolo m. wrote: > > > > Daniel Kian Mc Kiernan (the best Daniel of the bunch) wrote: > > > >> There is no practical problem for me here, and a practical problem

Re: lyx changes the file access privileges

2018-11-27 Thread Daniel Kian Mc Kiernan (the best Daniel of the bunch)
On 11/26/18 11:23 PM, paolo m. wrote: Daniel Kian Mc Kiernan (the best Daniel of the bunch) wrote: There is no practical problem for me here, and a practical problem could be addressed by chmod. But the situation is puzzling. Files with access mode: -rw cannot be synced with

Re: lyx changes the file access privileges

2018-11-26 Thread paolo m.
Daniel Kian Mc Kiernan (the best Daniel of the bunch) wrote: > There is no practical problem for me here, and a practical problem > could be addressed by chmod. But the situation is puzzling. Files with access mode: -rw cannot be synced with the dropbox paolo m.

Re: lyx changes the file access privileges

2018-11-25 Thread Jean-Marc Lasgouttes
Le 25/11/2018 à 04:11, Richard Kimberly Heck a écrit : I do not believe LyX sets file permissions itself. The write routine simply uses basic_ofstream, which just creates the file using the current umask, or whatever other default permissions are in place. We should probably remember the

Re: lyx changes the file access privileges

2018-11-25 Thread Paul A. Rubin
On 11/25/18 12:00 AM, Daniel Kian Mc Kiernan (the best Daniel of the bunch) wrote: On 11/24/18 7:11 PM, Richard Kimberly Heck wrote: On 11/24/18 6:33 PM, Daniel Kian Mc Kiernan wrote: On 11/24/18 1:05 PM, paolo m.  wrote: As i change a lyx file name (say test1.lyx ) with a new name  (say

Re: lyx changes the file access privileges

2018-11-25 Thread pdv
On 25/11/2018 06:00, Daniel Kian Mc Kiernan (the best Daniel of the bunch) wrote: On 11/24/18 7:11 PM, Richard Kimberly Heck wrote: On 11/24/18 6:33 PM, Daniel Kian Mc Kiernan wrote: On 11/24/18 1:05 PM, paolo m.  wrote: As i change a lyx file name (say test1.lyx ) with a new name  (say

Re: lyx changes the file access privileges

2018-11-24 Thread Daniel Kian Mc Kiernan (the best Daniel of the bunch)
On 11/24/18 7:11 PM, Richard Kimberly Heck wrote: On 11/24/18 6:33 PM, Daniel Kian Mc Kiernan wrote: On 11/24/18 1:05 PM, paolo m.  wrote: As i change a lyx file name (say test1.lyx ) with a new name  (say test2.lyx) , by the command 'file -> save as', the new file created has the usual

Re: lyx changes the file access privileges

2018-11-24 Thread Richard Kimberly Heck
On 11/24/18 6:33 PM, Daniel Kian Mc Kiernan (the best Daniel of the bunch) wrote: > On 11/24/18 1:05 PM, paolo m.  wrote: >> >> As i change a lyx file name (say test1.lyx ) with a new name  (say >> test2.lyx) , by the command 'file -> save as', the new file created has >> the usual access mode,

Re: lyx changes the file access privileges

2018-11-24 Thread Daniel Kian Mc Kiernan (the best Daniel of the bunch)
On 11/24/18 1:05 PM, paolo m. wrote: As i change a lyx file name (say test1.lyx ) with a new name (say test2.lyx) , by the command 'file -> save as', the new file created has the usual access mode, but, when saved, its mode change so that is inaccessible to groups and to the world. That does