Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make location of .xession-errors depend on user configuration #335

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

madpilot78
Copy link
Contributor

I have extended on the patch in #287 by adding a configuration file variable for lightdm to control how the location of .xsession-errors is chosen.

I added a smart-xsession-errors, which is off by default, that allows to switch from the old behavior (putting it in ~/.xsession-errors) to the algorith suggested in #287

This patch is being considered for inclusion in the freebsd ports tree for lightdm [1]. I decided to add a configuration variable and set it to false (implying old behavior), because I don't feel comfortable forcing a change of the location of this file on users. This due to the fact that the location of this file is historical behavior and expected by the users.

[1] https://bugs.freebsd.org/266532 and https://bugs.freebsd.org/275885

This allows to choose the logic for .xsession-errors placement.
Copy link

Hey! madpilot78 has not signed the Canonical CLA which is required to get this contribution merged on this project.

Please head over to https://ubuntu.com/legal/contributors to read more about it.

@madpilot78
Copy link
Contributor Author

As in #334 I cannot claim full copyright on this, since I took part of the code from #287.

Also, I am unable to complete the CLA form, it asks for a Canonical Project Manager or contact. What should I put in this field?

Thanks in advance.

vishwin pushed a commit to vishwin/freebsd-ports that referenced this pull request Dec 29, 2023
- Add patch to use setusercontext(3) to setup user environment, so it respects login.conf among other things [1]
- Use autoreconf, since patch requires regenerating configure script to check for setusercontext(3) [2]
- Explicitly disable libaudit support, not supported in FreeBSD [3]
- Add QT5 options, disabled by default, to control linking against qt5 [4]
- Import patch adding option to enable alternative location for .xsession-errors file [5]
- Correctly define runtime dependencies
- Forcibly disable installation of apparmor files
- Install PAM configuration files as samples, so in the future they are not overwritten if customized
- Pet portclippy/portfmt
- Regenerate patches

Upstreaming:

[1] canonical/lightdm#334

[5] canonical/lightdm#335

Many thanks to all people involved!

PR:		266532 [1] [2],
		273720 [1],
		275885 [3] [4] [5]
Tested by:	Ivan Rozhuk <[email protected]>,
		Daniel Tameling <[email protected]> (provided setusercontext patch),
		Anton Saietskii <[email protected]>
@robert-ancell
Copy link
Collaborator

@madpilot78 you can put me in the contact field, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants