Migrate data in phablet's home directory
I am not sure if ubuntu-touch-session is the best place to migrate the phablet user's home directory when migrating from UT 16.04 to 20.04, but we should start a collection of items to migrate that are //not related to individual packages// but more to the UT system itself, such as...
Please also note that we cannot add code to lomiri-* components to handle migrations from unity8 to lomiri. The migration scripts of packages should handle migration steps internally if we change stuff between one version of the package and another version.
These kinds of changes listed below should rather be handled by a more common / meta-like package, such as this one.
(This is still quite incomplete and might need to be extended).
Critical:
-
Create ~phablet/.config/lomiri/first-run-wizard
if~phablet/.config/unity-systems-settings/first-run-wizard
already exists, content should be this:
Base-Name: ubuntu-sdk
Base-Version: 20.04
Occurences of unity8
-
Remove ~phablet/.cache/unity8/
recursively -
Possibly move ~phablet/.cache/unity8/windowstatestorage.sqlite to ~phablet/.cache/lomiri/ (or remove it and recreated from scratch for lomiri) -
Remove ~phablet/.cache/upstart
recursively -
Remove ~phablet/.cache/unity-thumbnailer
recursively -
Remove ~phablet/.cache/Canonical/unity8/
or maybe even ~phablet/.cache/Canoni
Occurrences of ubuntu
-
Remove ~phablet/.cache/com.ubuntu.<core-app>/
QML caches recursively -
Remove ~phablet/.cache/ubuntu-app-launch/
recursively -
Remove ~phablet/.cache/ubuntu-system-settings/
recursively -
Remove ~phablet/.cache/ubuntu-download-manager
recursively -
Remove ~phablet/.cache/ubuntu-upload-manager
recursively -
Remove ~phablet/.cache/ubuntu-terminal-app
recursively -
Rename folder ./Videos/com.ubuntu.camera to ./Videos/camera.ubports, -
Same for ./Pictures/com.ubuntu.camera
Files that need to renamed / moved to new namespace:
./.local/share/ubuntu-push-client/helpers_data.json
./.local/share/ubuntu-push-client/levels.db
./.local/share/ubuntu-download-manager/ubuntu-download-manager/downloads.db
./.local/share/ubuntu-download-manager/Downloads/23f7b8cd2ea145a8a1c1534e433d1e0d.tmp
./.local/share/ubuntu-download-manager/Downloads/c30d42e4505e40dea70adf1832df16a5.tmp
./.local/share/evolution/tasks/1660994839.9885.0@ubuntu-phablet/tasks.ics
./.local/share/com.ubuntu.developer.verzegnassi.quick-memo/quick-memo
./.local/share/com.ubuntu.weather/QtWebEngine/UnknownProfile/Local Storage/leveldb/CURRENT
./.local/share/com.ubuntu.weather/QtWebEngine/UnknownProfile/Local Storage/leveldb/LOG
./.local/share/com.ubuntu.weather/QtWebEngine/UnknownProfile/Local Storage/leveldb/000003.log
./.local/share/com.ubuntu.weather/QtWebEngine/UnknownProfile/Local Storage/leveldb/MANIFEST-000001
./.local/share/com.ubuntu.weather/QtWebEngine/UnknownProfile/Local Storage/leveldb/LOCK
./.local/share/com.ubuntu.weather/QtWebEngine/UnknownProfile/GPUCache/data_1
./.local/share/com.ubuntu.weather/QtWebEngine/UnknownProfile/GPUCache/data_0
./.local/share/com.ubuntu.weather/QtWebEngine/UnknownProfile/GPUCache/data_2
./.local/share/com.ubuntu.weather/QtWebEngine/UnknownProfile/GPUCache/data_3
./.local/share/com.ubuntu.weather/QtWebEngine/UnknownProfile/GPUCache/index
./.local/share/com.ubuntu.weather/QtWebEngine/UnknownProfile/Session Storage/CURRENT
./.local/share/com.ubuntu.weather/QtWebEngine/UnknownProfile/Session Storage/LOG
./.local/share/com.ubuntu.weather/QtWebEngine/UnknownProfile/Session Storage/000003.log
./.local/share/com.ubuntu.weather/QtWebEngine/UnknownProfile/Session Storage/MANIFEST-000001
./.local/share/com.ubuntu.weather/QtWebEngine/UnknownProfile/Session Storage/LOCK
./.local/share/com.ubuntu.weather/QtWebEngine/UnknownProfile/Platform Notifications/CURRENT
./.local/share/com.ubuntu.weather/QtWebEngine/UnknownProfile/Platform Notifications/LOG
./.local/share/com.ubuntu.weather/QtWebEngine/UnknownProfile/Platform Notifications/000003.log
./.local/share/com.ubuntu.weather/QtWebEngine/UnknownProfile/Platform Notifications/MANIFEST-000001
./.local/share/com.ubuntu.weather/QtWebEngine/UnknownProfile/Platform Notifications/LOCK
./.local/share/com.ubuntu.weather/Databases/34e1e542f2f083ff18f537b07a380071.ini
./.local/share/com.ubuntu.weather/Databases/34e1e542f2f083ff18f537b07a380071.sqlite
./.local/share/applications/com.ubuntu.filemanager_filemanager_0.7.9.desktop
./.local/share/applications/com.ubuntu.camera_camera_3.2.4.desktop
./.local/share/applications/com.ubuntu.gallery_gallery_2.10.9.desktop
./.local/share/applications/com.ubuntu.ubports_ubports_1.9.1.desktop
./.local/share/applications/com.ubuntu.docviewer_docviewer_2.3.567.desktop
./.local/share/applications/com.ubuntu.calendar_calendar_0.8.9.desktop
./.local/share/applications/com.ubuntu.clock_clock_3.12.5.desktop
./.local/share/applications/com.ubuntu.terminal_terminal_1.0.3.desktop
./.local/share/applications/com.ubuntu.calculator_calculator_3.3.7.desktop
./.local/share/applications/com.ubuntu.developer.verzegnassi.quick-memo_quick-memo_0.3.61.desktop
./.local/share/applications/com.ubuntu.music_music_2.9.22.desktop
./.local/share/applications/com.ubuntu.weather_weather_5.11.2.desktop
./.local/share/ubuntu-upload-manager/Downloads/c5b2d67b1878335e7451d615910718f6.m-notifyresp.ind.response
./.local/share/ubuntu-upload-manager/Downloads/3c45dde61fb6cb304ed4698b3c407482.m-notifyresp.ind.response
./.local/share/com.ubuntu.gallery/database/gallery.sqlite
./.local/share/ubuntu-system-settings/updatestore.db
./.local/share/com.ubuntu.clock/user-preferences
./.local/share/com.ubuntu.music/Databases/2be3974e34f63282a99a37e9e2077ee4.sqlite
./.local/share/com.ubuntu.music/Databases/b01631344d4b1a36d6dec3179aff8784.sqlite
./.local/share/com.ubuntu.music/Databases/2be3974e34f63282a99a37e9e2077ee4.ini
./.local/share/com.ubuntu.music/Databases/d332dbaaf4b3a1a7909b1d623eb1d02b.sqlite
./.local/share/com.ubuntu.music/Databases/d332dbaaf4b3a1a7909b1d623eb1d02b.ini
./.local/share/com.ubuntu.music/Databases/b01631344d4b1a36d6dec3179aff8784.ini
./.local/share/session_migration-ubuntu-touch
./.config/evolution/sources/1660994839.9885.0@ubuntu-phablet.source
./.config/com.ubuntu.dialer-app/DialerApp.conf
./.config/com.ubuntu.messaging-app/MessagingApp.conf
./.config/com.ubuntu.developer.verzegnassi.quick-memo/com.ubuntu.developer.verzegnassi.quick-memo.conf
./.config/ubuntu-terminal-app/customized.colorscheme
./.config/ubuntu-terminal-app/ubuntu-terminal-app.conf
./.config/com.ubuntu.weather/com.ubuntu.weather.conf
./.config/com.ubuntu.camera/com.ubuntu.camera.conf
./.config/com.ubuntu.gallery/com.ubuntu.gallery.conf
./.config/com.ubuntu.calendar/com.ubuntu.calendar.conf
./.config/ubuntu-system-settings/wizard-has-run
./.config/com.ubuntu.docviewer/com.ubuntu.docviewer.conf
./.config/com.ubuntu.filemanager/com.ubuntu.filemanager.conf
./.config/pulse/ubuntu-phablet-default-source
./.config/pulse/ubuntu-phablet-stream-volumes.tdb
./.config/pulse/ubuntu-phablet-default-sink
./.config/com.ubuntu.clock/com.ubuntu.clock.conf
./.config/com.ubuntu.music/com.ubuntu.music.conf
./.config/com.ubuntu.address-book/AddressBookApp.conf
./.config/ubuntu-ui-toolkit/theme.ini