Bug 275989 - x11/lightdm: Move ~/.Xauthority to ${XDG_RUNTIME_DIR} if XDG_RUNTIME_DIR is set
Summary: x11/lightdm: Move ~/.Xauthority to ${XDG_RUNTIME_DIR} if XDG_RUNTIME_DIR is set
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-desktop (Team)
URL: https://github.com/canonical/lightdm/...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-29 00:54 UTC by Ivan Rozhuk
Modified: 2023-12-29 09:02 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (desktop)


Attachments
patch (2.04 KB, patch)
2023-12-29 00:54 UTC, Ivan Rozhuk
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Rozhuk 2023-12-29 00:54:32 UTC
Created attachment 247326 [details]
patch

Set user-authority-in-system-dir=false in config.
Tested with ConsoleKit2. Not sure that will work with logind without additional code.


More details here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266532#c46
Comment 1 Guido Falsi freebsd_committer freebsd_triage 2023-12-29 08:24:23 UTC
Please file this patch with upstream and sign their contributor agreement and let's see if there are comments.

The port is already diverging enough from upstream (also due to their strict policy accepting patches), but this one, if accepted in principle, being your original work could be accepted upstream, at least from a licensing aspect.

Anyway I'm not going to consider this change if there is no upstream pull request.

While I again have no strong opinions about the change your justification "I don't want crap in ~ and /var" is hardly a good reason for a global change.

Your personal preferences not necessarily reflect the users general consensus. We cannot modify ports to tailor them for each individual user, The .xsession-errors request was already borderline IMHO. I'm trying to accommodate your requests but I really cannot fork lightdm just to move around all its dot files. 

I also have not understood your "Simple hack:" part, not the comment about profile. Can you explain exactly what you mean? what you expect and trying to achieve?

Please note that I'm not an expert about the intricacies of Xorg dot files, so please give comprehensive explanations and at least some reference to official documentation and standard where these files are expected/allowed to live. Personal preferences are not really that relevant.
Comment 2 Guido Falsi freebsd_committer freebsd_triage 2023-12-29 08:33:35 UTC
In relation to bug #266532, comment #46

You problem with interaction with gnupg is complex. If it has hardcoded values maybe those are mandated by some Xorg standard? This needs to be checked before moving things around. These dot files cannot go wherever your hearth desires, there are some rules to be followed and we need to investigate those. You're asking the change, so it's it is your duty to perform such investigation.

I cannot and would not feel comfortable committing hacky changes.

Since you are addressing an interaction between multiple parts (login.conf, consolekit, gnugp, lightdm, potentially other display managers), maybe the change should be discussed on the mailing lists trying to involve other port maintainers before forcing a change in a single tool (lightdm).

I'm really unable to properly evaluatre this change request, so I'm suggesting again that you:

1 - file this change as a pull request with upstream [1]

2 - write to the mailing lists (I'd suggest desktop@ and maybe x11@, maybe also ports@, please choose what you deem the best option) so people more informed than me about these matters can express their opinions.


[1] https://github.com/canonical/lightdm
Comment 3 Guido Falsi freebsd_committer freebsd_triage 2023-12-29 09:02:10 UTC
(In reply to Guido Falsi from comment #2)

Sorry I did not notice you already filed this upstream...But you really need to sign their CLA before they act on it, I fear.