Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upfeatherpad can only handle one user at a time on OpenBSD #264
Comments
This comment has been minimized.
This comment has been minimized.
|
Thanks for the report! I'll investigate it and might need to ask you questions about OpenBSD (*BSD). |
This comment has been minimized.
This comment has been minimized.
|
I think this is about neither *BSD nor FeatherPad but caused by wrong root environment variables. (1) Which command do you use to open FeatherPad as root? (2) What's the output of I think the privilege program you use doesn't set the correct EVs as root. The output in (2) should be "root" but it's your user name; isn't it? If so, that would be dangerous because it could change the permissions of your config files, so that you couldn't configure apps as user after you open them as root. |
This comment has been minimized.
This comment has been minimized.
|
(1) (2) In all cases, output of
Indeed, for a long time I've had this issue. So you are right. I don't think this is an OpenBSD bug or a featherpad bug, but a problem with my environment. I suspect the problem is with pcmanfm-qt and/or qterminal and/or LXQt because this issue does not occur in OpenBSD+MATE. Any idea how to solve this, so that qterminal and pcmanfm-qt change value of USER to root when appropriate? |
This comment has been minimized.
This comment has been minimized.
|
I figured it out. Just needed to change /etc/doas.conf from this:
to this:
tsujan, that was some extremely impressive deductive work on your part. |
This comment has been minimized.
This comment has been minimized.
Definitely!
If you use LXQt, upgrade to its latest release (0.14.X). If you can't upgrade LXQt for now, use the MATE privilege program inside it ( And never use the mere Anyhow, it seems that FeatherPad's warning-bar revealed the problem here :) |
This comment has been minimized.
This comment has been minimized.
That was because of your clean report :) |
tsujan
closed this
Apr 4, 2019
This comment has been minimized.
This comment has been minimized.
For the sake of completeness, I should add that The above-mentioned discussion between that LXQt dev and me was about how careful we should be; IMO, he was too careful ;) Anyway, the final result was OK. |
bdantas commentedApr 4, 2019
I compiled -master branch (version 0.10.0) on OpenBSD 6.4.
If I open a file as root then, while that file is still open, open a different file as bruno (my non-root user), the bruno instance says "a previous crash detected!"
Conversly, if bruno user opens a file first then root opens a privileged system file, root can't save changes because the root instance isn't running as root.
During hacking session I need the editor to run as root when launched by root and run as bruno when launched by bruno, with multiple files open by both users.