Skip to content

Decouple GNOME Shell from gnome-session #67546

Open

Description

@jtojnar

Currently, gnome-session depends on Shell:

--suffix XDG_DATA_DIRS : "${gnome3.gnome-shell}/share"\

We do not want that as it introduces unnecessary dependencies into Flashback session. Also it will make things like gnome-shell-with-plugins or optional runtime dependencies much more convenient by dropping the need to rebuild.

We would need to include the session in a similar way we already do with flashback

services.xserver.displayManager.extraSessionFilePackages = map
(wm: pkgs.gnome3.gnome-flashback.mkSessionForWm {
inherit (wm) wmName wmLabel wmCommand;
}) (optional cfg.flashback.enableMetacity {
wmName = "metacity";
wmLabel = "Metacity";
wmCommand = "${pkgs.gnome3.metacity}/bin/metacity";
} ++ cfg.flashback.customSessions);

instead of the hardcoded package

services.xserver.displayManager.extraSessionFilePackages = [ pkgs.gnome3.gnome-session ];

We also need to be mindful of env var stripping.

Activity

  1. added
    0.kind: enhancement
    6.topic: GNOME
    on Aug 27, 2019
  2. stale commented on Jun 2, 2020

    @stale

    Thank you for your contributions.

    This has been automatically marked as stale because it has had no activity for 180 days.

    If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

    Here are suggestions that might help resolve this more quickly:

    1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
    2. Ask on the NixOS Discourse.
    3. Ask on the #nixos channel on irc.freenode.net.
  3. added
    2.status: stale
    on Jun 2, 2020
  4. moved this to To Do in GNOMEon Jun 20, 2024
  5. qweered commented on Oct 1, 2025

    @qweered
    Contributor

    not stale

  6. removed
    2.status: stale
    on Oct 1, 2025
  7. added
    2.status: stale
    on Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: enhancement2.status: stale6.topic: GNOME

    Projects

    • Status
      To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions