| Summary: | Autostart Application broken if app command contains env variable override | ||
|---|---|---|---|
| Product: | [Applications] systemsettings | Reporter: | Andrea Ippolito <andrea.ippo> |
| Component: | kcm_autostart | Assignee: | Nicolas Fella <nicolas.fella> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | normal | CC: | kde, plasma-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | 5.25.2 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Andrea Ippolito
2022-07-08 06:51:33 UTC
>1. Change firefox's default command (at least the default on opensuse TW) from `firefox %u` to `MOZ_DISABLE_RDD_SANDBOX=1 firefox %u` (this is a hack I have to use until Firefox 102 comes out for my distro)
That's an invalid desktop file as per the spec.
Exec=env MOZ_DISABLE_RDD_SANDBOX=1 firefox %u
would be valid.
(In reply to David Edmundson from comment #1) > >1. Change firefox's default command (at least the default on opensuse TW) from `firefox %u` to `MOZ_DISABLE_RDD_SANDBOX=1 firefox %u` (this is a hack I have to use until Firefox 102 comes out for my distro) > > That's an invalid desktop file as per the spec. > > Exec=env MOZ_DISABLE_RDD_SANDBOX=1 firefox %u > > would be valid. Hello David, thanks for your reply, but unfortunately the suggested fix still doesn't provide the expected behavior: https://imgur.com/a/Aui5tdJ Drop the "Exec=" at the front. I was speaking in terms of what we see if we edit the file by hand not the UI. (In reply to David Edmundson from comment #3) > Drop the "Exec=" at the front. > > I was speaking in terms of what we see if we edit the file by hand not the > UI. Hello, indeed it works if I drop the Exec= part, so thanks for that. However, I find it a bit misleading for a desktop file to allow to launch an app with, for example: MOZ_DISABLE_RDD_SANDBOX=1 firefox (so, without the "env" prefix) Whereas such "env" prefix becomes mandatory the moment you want to autostart an app. Is this expected/is there's a reason for that? If autostart enforces such a strict behavior, maybe application launching should also expect "env", or refuse to launch the app with an error, for example. What do you think? |