Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd,dbus: import PATH XDG_DATA_DIRS variables into systemd and dbus session #6640

Merged
merged 1 commit into from
Jun 23, 2024

Conversation

JohnRTitor
Copy link
Contributor

@JohnRTitor JohnRTitor commented Jun 23, 2024

Describe your PR, what does it fix/add?

When opening links from a browser that would otherwise open in another app present in the system, it fails to find the app. This is because PATH is not imported into systemd/dbus.

We are currently using a workaround in NixOS to explicitly define the systemd environment PATH, but ideally it should be set by the Window manager/DE at login.

An open issue highlighted this for the past one year #2800 and several threads (ie. on discourse) on the internet have popped up asking the user to manually import PATH. Lets not hold this any longer and let this issue die in peace.

In addition to PATH, XDG_DATA_DIRS should be imported as well, due to it containing useful things like desktop files.

This issue affects flatpak apps as well.

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

This is backwards compatible.

Is it ready for merging, or does it need work?

Ready. I am using the patch on NixOS and it works.

@JohnRTitor JohnRTitor changed the title systemd. dbus: import PATH XDG_DATA_DIRS variables into systemd and dbus session systemd,dbus: import PATH XDG_DATA_DIRS variables into systemd and dbus session Jun 23, 2024
Copy link
Member

@fufexan fufexan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fufexan fufexan merged commit 315f16d into hyprwm:main Jun 23, 2024
11 checks passed
@JohnRTitor JohnRTitor deleted the patch-dbus branch June 23, 2024 13:14
JohnRTitor added a commit to JohnRTitor/nixpkgs that referenced this pull request Jun 26, 2024
Importing PATH into the systemd environment is done by default in
Hyprland v0.41.2+ (hyprwm/Hyprland#6640)
We soft deprecate this option here for versions >= 0.41.2.
JohnRTitor added a commit to JohnRTitor/nixpkgs that referenced this pull request Jun 26, 2024
Importing PATH into the systemd environment is done by default in
Hyprland v0.41.2+ (hyprwm/Hyprland#6640)
We soft deprecate this option here for versions >= 0.41.2.
JohnRTitor added a commit to JohnRTitor/nixpkgs that referenced this pull request Jun 26, 2024
Importing PATH into the systemd environment is done by default in
Hyprland v0.41.2+ (hyprwm/Hyprland#6640)
We soft deprecate this option here for versions >= 0.41.2.
JohnRTitor added a commit to JohnRTitor/nixpkgs that referenced this pull request Jun 26, 2024
Importing PATH into the systemd environment is done by default in
Hyprland v0.41.2+ (hyprwm/Hyprland#6640)
We soft deprecate this option here for versions >= 0.41.2.
JohnRTitor added a commit to JohnRTitor/nixpkgs that referenced this pull request Jun 26, 2024
Importing PATH into the systemd environment is done by default in
Hyprland v0.41.2+ (hyprwm/Hyprland#6640)
We soft deprecate this option here for versions >= 0.41.2.
JohnRTitor added a commit to JohnRTitor/nixpkgs that referenced this pull request Jun 26, 2024
Importing PATH into the systemd environment is done by default in
Hyprland v0.41.2+ (hyprwm/Hyprland#6640)
We soft deprecate this option here for versions >= 0.41.2.
JohnRTitor added a commit to JohnRTitor/nixpkgs that referenced this pull request Jun 26, 2024
Importing PATH into the systemd environment is done by default in
Hyprland v0.41.2+ (hyprwm/Hyprland#6640)
We soft deprecate this option here for versions >= 0.41.2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants