Skip to content

Duplicated XDG_DATA_DIRS in Qt applications #69277

Closed

Description

@peterhoeg

Describe the bug

Further to #54525 and relevant to #69272, XDG_DATA_DIRS is inflated by duplicate store paths:

$ echo $XDG_DATA_DIRS | sed -e 's/:/\n/g' | grep kwallet | sort
/nix/store/34bl44sm6fyn7qzmj0yl6w4dsxr46718-kwallet-5.61.0-bin/share
/nix/store/34bl44sm6fyn7qzmj0yl6w4dsxr46718-kwallet-5.61.0-bin/share
/nix/store/34bl44sm6fyn7qzmj0yl6w4dsxr46718-kwallet-5.61.0-bin/share
/nix/store/sr02l2rbmkp8mqqbn0v98xxhrdq0lch5-kwallet-5.61.0/share
/nix/store/sr02l2rbmkp8mqqbn0v98xxhrdq0lch5-kwallet-5.61.0/share
/nix/store/sr02l2rbmkp8mqqbn0v98xxhrdq0lch5-kwallet-5.61.0/share

Essentially all dependencies are there 3 times.

To Reproduce
Steps to reproduce the behavior:

  1. Launch konsole
  2. Run the command mentioned above

Expected behavior
Each store path should only be listed once.

Metadata

  • system: "x86_64-linux"
  • host os: Linux 5.3.0, NixOS, 20.03.git.48ca992ad6bM (Markhor)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3
  • channels(root): "nixos-19.09pre188608.984851a9bfa"
  • channels(peter): "home-manager"
  • nixpkgs: /home/peter/src/active/nixpkgs_unstable

Cc: @ttuegel

Activity

  1. added
    0.kind: bug
    on Sep 23, 2019
  2. ttuegel commented on Sep 23, 2019

    @ttuegel
    Member

    The responsible setup hook specifically checks that it is not adding duplicate paths, so I don't understand why this happens.

  3. added
    6.topic: qt/kde
    on Sep 23, 2019
  4. self-assigned this
    on Sep 23, 2019
  5. ttuegel commented on Sep 23, 2019

    @ttuegel
    Member

    The konsole wrapper only includes the kwallet paths once.

    Each store path should only be listed once.

    This is a known issue with makeWrapper: Running a wrapped program inside another wrapped program compounds their environments. In this case, probably, konsole forks and re-execs itself.

    I am open to suggestions about how to fix the underlying problem in makeWrapper.

    (This is probably not related to #69272.)

  6. matthewbauer commented on Sep 23, 2019

    @matthewbauer
    Member

    Related to #67691

  7. lheckemann commented on Oct 7, 2019

    @lheckemann
    Member

    Is this fixed by #69426/#69427?

  8. ivan commented on Nov 8, 2019

    @ivan
    SponsorMember

    @lheckemann not in 19.09 at least, I commented on #67691 (comment)

    I posted a workaround in a subsequent comment #67691 (comment)

  9. peterhoeg commented on Jan 8, 2020

    @peterhoeg
    MemberAuthor

    Not fixed on unstable either.

  10. stale commented on Jul 6, 2020

    @stale

    Hello, I'm a bot and I thank you in the name of the community for opening this issue.

    To help our human contributors focus on the most-relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human.

    The community would appreciate your effort in checking if the issue is still valid. If it isn't, please close it.

    If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me". If you'd like it to get more attention, you can ask for help by searching for maintainers and people that previously touched related code and @ mention them in a comment. You can use Git blame or GitHub's web interface on the relevant files to find them.

    Lastly, you can always ask for help at our Discourse Forum or at #nixos' IRC channel.

  11. added
    2.status: stale
    on Jul 6, 2020
  12. peterhoeg commented on Jul 6, 2020

    @peterhoeg
    MemberAuthor

    Very much still an issue.

  13. removed
    2.status: stale
    on Jul 6, 2020
  14. stale commented on Jan 2, 2021

    @stale

    I marked this as stale due to inactivity. → More info

  15. added
    2.status: stale
    on Jan 2, 2021
  16. peterhoeg commented on Jan 7, 2021

    @peterhoeg
    MemberAuthor

    I am no longer seeing this on unstable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

0.kind: bug2.status: stale6.topic: qt/kde

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions