After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 740632 - Propagate XDG_CONFIG_DIRS and XCURSOR_PATH
Propagate XDG_CONFIG_DIRS and XCURSOR_PATH
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2014-11-24 15:01 UTC by Luca Bruno
Modified: 2014-11-29 14:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gdm_propagated_env.patch (1.37 KB, patch)
2014-11-24 15:01 UTC, Luca Bruno
needs-work Details | Review
Propagated more env variables in gdm (655 bytes, patch)
2014-11-28 17:38 UTC, Luca Bruno
none Details | Review

Description Luca Bruno 2014-11-24 15:01:13 UTC
Created attachment 291370 [details] [review]
gdm_propagated_env.patch

In NixOS we extensively use environment variables. In particular, we use XDG_CONFIG_DIRS to point to gnome settings daemon /etc/xdg, and XCURSOR_PATH obviously for the cursors being in the new adwaita icon theme[1].

Hope this trivial patch can be included in GDM. Thanks.

[1] https://github.com/lethalman/nixpkgs/blob/gnome314/nixos/modules/services/x11/display-managers/gdm.nix#L54
Comment 1 Ray Strode [halfline] 2014-11-24 17:44:21 UTC
Review of attachment 291370 [details] [review]:

after you make below changes feel free to push.

::: daemon/gdm-launch-environment.c
@@ +221,3 @@
                 "LC_COLLATE", "LC_MONETARY", "LC_MESSAGES", "LC_PAPER",
                 "LC_NAME", "LC_ADDRESS", "LC_TELEPHONE", "LC_MEASUREMENT",
+                "LC_IDENTIFICATION", "LC_ALL", "WINDOWPATH", "XCURSOR_PATH",

I guess this is okay...

@@ +253,3 @@
         g_free (system_data_dirs);
 
+        system_config_dirs = g_strjoinv (":", (char **) g_get_system_config_dirs ());

I know you're trying to model what we're doing with system_data_dirs, but I think i'd rather you just add it up above like you add XCURSOR_PATH.   The datadirs code is there because we have to append and item to the search path.  Since we don't have to do that for XDG_CONFIG_DIRS, i'd like to avoid the code.
Comment 2 Luca Bruno 2014-11-28 17:38:30 UTC
Created attachment 291739 [details] [review]
Propagated more env variables in gdm

Thanks. New patch, will push it in a few hours.
Comment 3 Luca Bruno 2014-11-29 14:38:00 UTC
commit d816c19562b01f5a85fb61c8cb90e5b23fd04ca5
Author: Luca Bruno <lucabru@src.gnome.org>
Date:   Sat Nov 29 15:13:42 2014 +0100

    launch-environment: Propagate XCURSOR_PATH and XDG_CONFIG_DIRS
    
    https://bugzilla.gnome.org/show_bug.cgi?id=740632

Cherry picked in gnome-3-14 as 04b24dda59e24eebe14cccddb7d7da6236624f44

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.