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

fcitx5: substitute path in all desktop files and dbus service files #308725

Merged
merged 1 commit into from
Jun 2, 2024

Conversation

duament
Copy link
Contributor

@duament duament commented May 3, 2024

Description of changes

Fcitx5 does not load addons properly if activated by dbus.

This PR substitutes the Exec path in fcitx5 dbus service file to fix it.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@eclairevoyant
Copy link
Member

eclairevoyant commented May 3, 2024

Not sure why the desktop file uses an absolute path (see #308324) in the first place. As for the dbus service I'm admittedly not experienced enough with that to comment.

@duament
Copy link
Contributor Author

duament commented May 3, 2024

Not sure why the desktop file uses an absolute path (see #308324) in the first place. As for the dbus service I'm admittedly not experienced enough with that to comment.

Not sure why either. But these absolute paths are set by the upstream.

https://github.com/fcitx/fcitx5/blob/5.1.9/data/org.fcitx.Fcitx5.desktop.in.in

https://github.com/fcitx/fcitx5/blob/5.1.9/src/modules/dbus/org.fcitx.Fcitx5.service.in

@NickCao NickCao requested a review from Vonfry May 4, 2024 13:45
@duament duament changed the title fcitx5: substitute path in dbus service fcitx5: substitute path in all desktop files and dbus service files May 8, 2024
@SuperSandro2000 SuperSandro2000 merged commit 23ca552 into NixOS:master Jun 2, 2024
25 checks passed
marsam added a commit to marsam/home-manager that referenced this pull request Jun 8, 2024
Since NixOS/nixpkgs#308725, fcitx5-with-addons
expects share/dbus-1/services/ to be present.
This patch updates the fcitx5 stub to reflect that.
marsam added a commit to marsam/home-manager that referenced this pull request Jun 8, 2024
Since NixOS/nixpkgs#308725, fcitx5-with-addons
expects share/dbus-1/services/ to be present.
This patch updates the fcitx5 stub to reflect that.
sinanmohd pushed a commit to sinanmohd/home-manager that referenced this pull request Jul 16, 2024
Since NixOS/nixpkgs#308725, fcitx5-with-addons
expects share/dbus-1/services/ to be present.
This patch updates the fcitx5 stub to reflect that.
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

5 participants