-
Notifications
You must be signed in to change notification settings - Fork 3
libtrash alters mode of files saved by LyX to 240. #1
Description
Recently, additionally to the bug of chrome and vivaldi browsers not
showing up any window if libtrash is preloaded, there are issues with
LyX in the current version of LyX:
If LyX is started with libtrash preloaded, and I open an already
existing file, and then safe it, the permissions are changed: It gets
write permission for the user and read permission for the group but NOT
THE USER (mode 240).
Meaning, usually, the user cannot read the file anymore.
Since lyx uses some default .lyx-file at startup when creating a new
document, copying it over to a temporary file, it cannot read that file
anymore, thus it is impossible to start a new document.
Attached are two screenshots of dialogues showing up if I want to
create a new document with LyX. The second dialogue comes up when I
close the first one.
The file ~/.lyx/templates/defaults.lyx has "usual" permissions (644),
but the /tmp/lyx_tmpdir.PuDcxaWoEgGU/Buffer_convertLyXFormatmVnNfa.lyx,
which is a file created transiently by LyX from
~/.lyx/templates/defaults.lyx has mode 240, making LyX unable to read
it and fail (and thus LyX thinks that ~/.lyx/templates/defaults.lyx is
not readable, since LyX does not expect that file permissions differ
from what LyX wants them to be).
Starting lyx with an empty LD_PRELOAD mitigates this problems.
Can you have a look into it? Are you sure that this is not a problem
with libtrash?
Output of lyx --version:
LyX 2.2.3 (2017-05-17)
Configuration
Host type: x86_64-unknown-linux-gnu
Special build flags: build=release c++11 std-regex use-aspell use-enchant use-hunspell
C++ Compiler: g++ (7.2.1)
C++ Compiler flags: -std=c++11 -fPIC -O2 -Wno-deprecated-declarations
C++ Compiler user flags: -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fpermissive
Linker flags:
Linker user flags: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
Qt Frontend:
Qt version: 5.10.0
Packaging: posix
LyX binary dir: /usr/bin
LyX files dir: /usr/share/lyx
libtrash version: 3.3

