Merge ~3v1n0/ubuntu/+source/gnome-session:ubuntu/master into ~ubuntu-desktop/ubuntu/+source/gnome-session:ubuntu/master
Status: | Superseded |
---|---|
Proposed branch: | ~3v1n0/ubuntu/+source/gnome-session:ubuntu/master |
Merge into: | ~ubuntu-desktop/ubuntu/+source/gnome-session:ubuntu/master |
Diff against target: |
82 lines (+62/-0) 3 files modified
debian/changelog (+7/-0) debian/ubuntu-session.migrations (+1/-0) debian/ubuntu-settings-migrate-to-defaults.18.10.0.py (+54/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Marco Trevisan (Treviño) | Needs Fixing | ||
Ubuntu Desktop | Pending | ||
Review via email: mp+353340@code.launchpad.net |
This proposal has been superseded by a proposal from 2018-08-31.
Description of the change
Ensre we migrate Yaru relevant settings to defaults if the user values matches the old defaults.
However... This should actually only run when the ubuntu-session is running, or might change the settings to someone running the classic gnome-session but with the old ubuntu settings.
session migrations doesn't seem to help much on this, but there could be some strategies:
1) Return an error if the migration script runs in a session it doesn't care about
1a) change session-migrations to support a specific exit-code as "skip this" without triggering any error (or gprinterr)
2) Add this script to an XDG_DATA_DIR that is only specific for the ubuntu-session (needs more changes and is ugly)
So... Let me know what you prefer.
Ah, as mentioned marking this as needs-fixing, since we need to decide what's the best approach for not making this run in NON-ubuntu sessions without having to make sessions-migration to trigger errors.
Another option would even been making sessions-migration XDG_CURRENT_DESKTOP aware and then supporting .desktop files as migration scripts, where we can quickly filter them using the various `OnlyShowIn` /`NotShowIn` to filter.