Repository navigation
fix: trash: Use kioclient as trash implementation on KDE Plasma 6 - #54092
MarshallOfSound merged 1 commit into
Conversation
|
💖 Thanks for opening this pull request! 💖 Semantic PR titlesWe use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix. Examples of commit messages with semantic prefixes:
Commit signingThis repo enforces commit signatures for all incoming PRs. PR tipsThings that will help get your PR across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
MarshallOfSound
left a comment
There was a problem hiding this comment.
Can we make this an exhaustive switch with no default instead? The reason KDE6 got missed in the first place is that base::nix::DESKTOP_ENVIRONMENT_KDE6 landed upstream back in 2023 and this if-chain silently fell through to gio. Chromium's own KDE call sites (settings_utils_linux.cc, printer_manager_dialog_linux.cc) switch over every DesktopEnvironment value so clang yells at us on the roll when base adds a new one (COSMIC most recently). Let's do the same here so this can't drift again.
// Determine desktop environment and set accordingly.
switch (base::nix::GetDesktopEnvironment(env.get())) {
case base::nix::DESKTOP_ENVIRONMENT_KDE4:
case base::nix::DESKTOP_ENVIRONMENT_KDE5:
trash = "kioclient5";
break;
case base::nix::DESKTOP_ENVIRONMENT_KDE3:
case base::nix::DESKTOP_ENVIRONMENT_KDE6:
trash = "kioclient";
break;
case base::nix::DESKTOP_ENVIRONMENT_OTHER:
case base::nix::DESKTOP_ENVIRONMENT_CINNAMON:
case base::nix::DESKTOP_ENVIRONMENT_DEEPIN:
case base::nix::DESKTOP_ENVIRONMENT_GNOME:
case base::nix::DESKTOP_ENVIRONMENT_PANTHEON:
case base::nix::DESKTOP_ENVIRONMENT_UKUI:
case base::nix::DESKTOP_ENVIRONMENT_UNITY:
case base::nix::DESKTOP_ENVIRONMENT_XFCE:
case base::nix::DESKTOP_ENVIRONMENT_LXQT:
case base::nix::DESKTOP_ENVIRONMENT_COSMIC:
// No DE-specific tool, falls through to `gio trash` below.
break;
}|
@LinusDierheimer Ping on this, happy to review once the above change is made |
cc83ac0 to
4071784
Compare
Force pushed your suggested change |
|
Congrats on merging your first pull request! 🎉🎉🎉 |
|
Release Notes Persisted
|
|
I have automatically backported this PR to "44-x-y", please check out #54361 |
|
I have automatically backported this PR to "45-x-y", please check out #54362 |
Description of Change
Use kioclient as trash implementation on KDE Plasma 6. Similar to Plasma 3, the executable ist just called
kioclient(without a 6 suffix). Prefer it over gio.I did not find any documentation that needs updating because of that.
Checklist
npm testpassesRelease Notes
Notes: Changed the default trash implementation on KDE Plasma 6 to
kioclient.