Re: [PATCH RFC] util: pick a better runtime directory when XDG_RUNTIME_DIR isn't set

2025-03-06 Thread Laine Stump
On 2/18/25 12:21 PM, Daniel P. Berrangé wrote: On Tue, Feb 18, 2025 at 02:50:52PM +, Daniel P. Berrangé wrote: On Tue, Feb 18, 2025 at 09:33:43AM -0500, Laine Stump wrote: On 2/18/25 4:26 AM, Daniel P. Berrangé wrote: On Mon, Feb 17, 2025 at 03:11:56PM -0500, Laine Stump wrote: On 2/17/25

Re: [PATCH RFC] util: pick a better runtime directory when XDG_RUNTIME_DIR isn't set

2025-02-18 Thread Daniel P . Berrangé
On Tue, Feb 18, 2025 at 02:50:52PM +, Daniel P. Berrangé wrote: > On Tue, Feb 18, 2025 at 09:33:43AM -0500, Laine Stump wrote: > > On 2/18/25 4:26 AM, Daniel P. Berrangé wrote: > > > On Mon, Feb 17, 2025 at 03:11:56PM -0500, Laine Stump wrote: > > > > On 2/17/25 5:28 AM, Daniel P. Berrangé wrot

Re: [PATCH RFC] util: pick a better runtime directory when XDG_RUNTIME_DIR isn't set

2025-02-18 Thread Daniel P . Berrangé
On Tue, Feb 18, 2025 at 09:33:43AM -0500, Laine Stump wrote: > On 2/18/25 4:26 AM, Daniel P. Berrangé wrote: > > On Mon, Feb 17, 2025 at 03:11:56PM -0500, Laine Stump wrote: > > > On 2/17/25 5:28 AM, Daniel P. Berrangé wrote: > > > > On Mon, Feb 17, 2025 at 02:14:49AM -0500, Laine Stump wrote: > >

Re: [PATCH RFC] util: pick a better runtime directory when XDG_RUNTIME_DIR isn't set

2025-02-18 Thread Laine Stump
On 2/18/25 4:26 AM, Daniel P. Berrangé wrote: On Mon, Feb 17, 2025 at 03:11:56PM -0500, Laine Stump wrote: On 2/17/25 5:28 AM, Daniel P. Berrangé wrote: On Mon, Feb 17, 2025 at 02:14:49AM -0500, Laine Stump wrote: But sometimes XDG_RUNTIME_DIR isn't set in the user's environment. Do you have

Re: [PATCH RFC] util: pick a better runtime directory when XDG_RUNTIME_DIR isn't set

2025-02-18 Thread Daniel P . Berrangé
On Mon, Feb 17, 2025 at 03:11:56PM -0500, Laine Stump wrote: > On 2/17/25 5:28 AM, Daniel P. Berrangé wrote: > > On Mon, Feb 17, 2025 at 02:14:49AM -0500, Laine Stump wrote: > > > But sometimes XDG_RUNTIME_DIR isn't set in the user's environment. > > > > Do you have examples of scenarios in which

Re: [PATCH RFC] util: pick a better runtime directory when XDG_RUNTIME_DIR isn't set

2025-02-17 Thread Laine Stump
On 2/17/25 3:11 PM, Laine Stump wrote: On 2/17/25 5:28 AM, Daniel P. Berrangé wrote: On Mon, Feb 17, 2025 at 02:14:49AM -0500, Laine Stump wrote: But sometimes XDG_RUNTIME_DIR isn't set in the user's environment. Do you have examples of scenarios in which this happens, and yet the /run/user/N

Re: [PATCH RFC] util: pick a better runtime directory when XDG_RUNTIME_DIR isn't set

2025-02-17 Thread Laine Stump
On 2/17/25 5:28 AM, Daniel P. Berrangé wrote: On Mon, Feb 17, 2025 at 02:14:49AM -0500, Laine Stump wrote: But sometimes XDG_RUNTIME_DIR isn't set in the user's environment. Do you have examples of scenarios in which this happens, and yet the /run/user/ directory is still being created, as

Re: [PATCH RFC] util: pick a better runtime directory when XDG_RUNTIME_DIR isn't set

2025-02-17 Thread Laine Stump
On 2/17/25 5:02 AM, Martin Kletzander wrote: On Mon, Feb 17, 2025 at 02:14:49AM -0500, Laine Stump wrote: == I'm sending this as an RFC just because what it's doing feels kind of dirty - directly examining XDG_RUNTIME_DIR seems like an "end run" around the Glib API. If anyone has a better i

Re: [PATCH RFC] util: pick a better runtime directory when XDG_RUNTIME_DIR isn't set

2025-02-17 Thread Daniel P . Berrangé
On Mon, Feb 17, 2025 at 11:31:32AM +, Richard W.M. Jones wrote: > On Mon, Feb 17, 2025 at 02:14:49AM -0500, Laine Stump wrote: > > == > > > > I'm sending this as an RFC just because what it's doing feels kind of > > dirty - directly examining XDG_RUNTIME_DIR seems like an "end run" > > aro

Re: [PATCH RFC] util: pick a better runtime directory when XDG_RUNTIME_DIR isn't set

2025-02-17 Thread Richard W.M. Jones
On Mon, Feb 17, 2025 at 02:14:49AM -0500, Laine Stump wrote: > == > > I'm sending this as an RFC just because what it's doing feels kind of > dirty - directly examining XDG_RUNTIME_DIR seems like an "end run" > around the Glib API. If anyone has a better idea of what to do, please > give detai

Re: [PATCH RFC] util: pick a better runtime directory when XDG_RUNTIME_DIR isn't set

2025-02-17 Thread Daniel P . Berrangé
On Mon, Feb 17, 2025 at 02:14:49AM -0500, Laine Stump wrote: > But sometimes XDG_RUNTIME_DIR isn't set in the user's environment. Do you have examples of scenarios in which this happens, and yet the /run/user/ directory is still being created, as that rather sounds like something is broken out

Re: [PATCH RFC] util: pick a better runtime directory when XDG_RUNTIME_DIR isn't set

2025-02-17 Thread Martin Kletzander
On Mon, Feb 17, 2025 at 02:14:49AM -0500, Laine Stump wrote: == I'm sending this as an RFC just because what it's doing feels kind of dirty - directly examining XDG_RUNTIME_DIR seems like an "end run" around the Glib API. If anyone has a better idea of what to do, please give details :-) ==

[PATCH RFC] util: pick a better runtime directory when XDG_RUNTIME_DIR isn't set

2025-02-16 Thread Laine Stump
== I'm sending this as an RFC just because what it's doing feels kind of dirty - directly examining XDG_RUNTIME_DIR seems like an "end run" around the Glib API. If anyone has a better idea of what to do, please give details :-) == When running unprivileged (i.e. not as root, but as a reg