Summary: | confusing error when adding a startup application that's not executable | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | skierpage <skierpage> |
Component: | kcm_autostart | Assignee: | Nicolas Fella <nicolas.fella> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | nate, plasma-bugs |
Priority: | NOR | ||
Version: | 5.21.5 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/frameworks/kio/commit/d57bb4cbd964ecdfc5a2b3c1f36469aeac8e960b | Version Fixed In: | 5.83 |
Sentry Crash Report: |
Description
skierpage
2021-05-30 23:31:41 UTC
Adding a script via "Add application" is an interesting corner case that I had not considered. I can adapt https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/878 to cover this as well (In reply to Nicolas Fella from comment #1) > Adding a script via "Add application" is an interesting corner case that I > had not considered. > > I can adapt > https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/878 to cover > this as well hmm no, it's not that easy unfortunately A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/466 https://invent.kde.org/frameworks/kio/-/merge_requests/466 improves the error message in that case. I'm not sure a more invasive solution is justified given that for the user case of adding a script the "Add login script" option (which will get a proper executable check in https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/878) is preferred over the "Add application" option. Git commit d57bb4cbd964ecdfc5a2b3c1f36469aeac8e960b by Nicolas Fella. Committed on 31/05/2021 at 13:53. Pushed by ahmadsamir into branch 'master'. [kopenwithdialog] Show better error message when specifying a non-executable file If the user uses the file picker to specify a file instead of an application the file has to be executable. If it isn't "$file not found, please type a valid program name" is shown, which is confusing. Instead show that the file is not executable so the user knows what's going on. M +9 -1 src/widgets/kopenwithdialog.cpp https://invent.kde.org/frameworks/kio/commit/d57bb4cbd964ecdfc5a2b3c1f36469aeac8e960b (In reply to Nicolas Fella from comment #4) > ... for the user case of adding a script the "Add login > script" option (which will get a proper executable check in > https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/878) is > preferred over the "Add application" option. My years-old script launches Konsole with `konsole --tabs-from-file ~/dotfiles/session.konsole`. At some point in the upgrade to Fedora 34 on Wayland or afterwards, Konsole no longer appeared at startup (journalctl had errors "unknown: This compositor does not support the Plasma Window Management interface" as if the script was running too soon, or under sddm or something). So I assumed you _can't_ start applications from a login script any more, so I moved it to Autostart > + Add Application. Should I file a bug that Autostart > Login scripts can't launch programs in Fedora 34 Wayland? Thanks for working on this! Git commit 776f5c593ef8b1df40fae0961001e3e49c58aab4 by Nate Graham. Committed on 05/06/2021 at 13:17. Pushed by ngraham into branch 'master'. [kopenwithdialog] Improve executable-related error messages Use KUIT formatting and polish the error messages to be more descriptive and more grammatically correct in English. M +2 -2 src/widgets/kopenwithdialog.cpp https://invent.kde.org/frameworks/kio/commit/776f5c593ef8b1df40fae0961001e3e49c58aab4 (In reply to skierpage from comment #6) > My years-old script launches Konsole with `konsole --tabs-from-file > ~/dotfiles/session.konsole`. At some point in the upgrade to Fedora 34 on > Wayland or afterwards, Konsole no longer appeared at startup (journalctl had > errors "unknown: This compositor does not support the Plasma Window > Management interface" as if the script was running too soon, or under sddm > or something). So I assumed you _can't_ start applications from a login > script any more, so I moved it to Autostart > + Add Application. Should I > file a bug that Autostart > Login scripts can't launch programs in Fedora 34 > Wayland? > > Thanks for working on this! Login scripts don't work at all on current Fedora 34. That will be fixed in Plasma 5.22, to be released next week |