Does not work inside a snap due to hardcoded paths
Bug Description
Some apps can't find their main qml file. Error messages like:
"file:/
(in my case, the file was in /snap/unity8-
Seems due to code like the following in config.h.in. Probably needs to consider the value of $SNAP or just be a little more forgiving.
inline bool isRunningInstal
static bool installed = (QCoreApplicati
return installed;
}
inline QString messagingAppDir
if (isRunningInsta
return QString(
} else {
return QString(
}
}
inline QString ubuntuPhonePlug
if (isRunningInsta
return QString::null;
} else {
return QString(
}
}
Related branches
- system-apps-ci-bot: Needs Fixing (continuous-integration)
- Alexandre Abreu (community): Approve
-
Diff: 193 lines (+114/-3)7 files modified.bzrignore (+1/-0)
CMakeLists.txt (+3/-1)
make-snap.sh (+4/-0)
setup/gui/webbrowser-app.desktop.in (+27/-0)
snap/webbrowser-app.launcher (+10/-0)
snapcraft.yaml (+66/-0)
src/app/config.h.in (+3/-2)
- system-apps-ci-bot: Approve (continuous-integration)
- Ken VanDine: Approve
- Lukáš Tinkl (community): Approve
- Alberto Mardegan: Approve
-
Diff: 574 lines (+141/-48)17 files modifiedCMakeLists.txt (+17/-4)
plugins/about/storageabout.cpp (+13/-3)
plugins/background/background.cpp (+6/-6)
plugins/background/background.h (+1/-1)
plugins/language/language-plugin.cpp (+17/-9)
plugins/language/onscreenkeyboard-plugin.cpp (+10/-2)
plugins/security-privacy/securityprivacy.cpp (+3/-1)
plugins/security-privacy/trust-store-model.cpp (+5/-1)
plugins/sound/PageComponent.qml (+2/-2)
plugins/sound/SoundsList.qml (+3/-2)
plugins/sound/sound.cpp (+10/-0)
src/CMakeLists.txt (+2/-0)
src/main.cpp (+7/-3)
src/plugin-manager.cpp (+14/-3)
src/plugin.cpp (+13/-4)
src/utils.cpp (+12/-5)
tests/CMakeLists.txt (+6/-2)
- Lukáš Tinkl (community): Approve
- Unity8 CI Bot: Approve (continuous-integration)
-
Diff: 131 lines (+34/-25)1 file modifiedinclude/paths.h.in (+34/-25)
- Michi Henning (community): Approve
- unity-api-1-bot: Approve (continuous-integration)
-
Diff: 155 lines (+36/-9)7 files modifieddata/scope-registry.conf.in (+1/-1)
data/smart-scopes-proxy.conf.in (+1/-1)
include/unity/scopes/internal/ConfigBase.h (+2/-0)
src/scopes/internal/ConfigBase.cpp (+18/-1)
src/scopes/internal/RegistryConfig.cpp (+2/-2)
src/scopes/internal/RuntimeConfig.cpp (+4/-4)
src/scopes/internal/ScopeConfig.cpp (+8/-0)
- Michi Henning (community): Needs Fixing
-
Diff: 198 lines (+42/-15)9 files modifieddata/scope-registry.conf.in (+1/-1)
data/smart-scopes-proxy.conf.in (+1/-1)
doc/tutorial.dox (+2/-1)
include/unity/scopes/internal/ConfigBase.h (+2/-0)
src/scopes/internal/ConfigBase.cpp (+18/-1)
src/scopes/internal/RegistryConfig.cpp (+2/-2)
src/scopes/internal/RuntimeConfig.cpp (+4/-4)
src/scopes/internal/ScopeConfig.cpp (+11/-4)
test/gtest/scopes/internal/ScopeConfig/ScopeConfig_test.cpp (+1/-1)
- Marcus Tomlinson (community): Approve
- unity-api-1-bot: Approve (continuous-integration)
-
Diff: 14 lines (+2/-1)1 file modifiedsrc/Unity/scopes.cpp (+2/-1)
- Jenkins Bot: Approve (continuous-integration)
- Ubuntu File Manager Developers: Pending requested
-
Diff: 119 lines (+27/-23)2 files modifiedsrc/app/qml/ui/FileDetailsPopover.qml (+4/-0)
src/app/qml/ui/FolderListPage.qml (+23/-23)
- Marcus Tomlinson (community): Disapprove
-
Diff: 12 lines (+1/-1)1 file modifiedsrc/scopes-scope.cpp (+1/-1)
- dobey (community): Disapprove
- unity-api-1-bot: Approve (continuous-integration)
-
Diff: 44 lines (+8/-2)3 files modifiedlibclickscope/click/configuration.cpp (+3/-1)
libclickscope/click/configuration.h (+1/-0)
scope/clickapps/apps-query.cpp (+4/-1)
- Michael Zanetti (community): Approve
- Unity8 CI Bot: Approve (continuous-integration)
-
Diff: 232 lines (+40/-21)10 files modifieddata/unity8-dash.conf (+1/-1)
data/unity8-filewatcher.conf (+5/-0)
data/unity8-greeter-wrapper (+6/-6)
plugins/LightDM/SessionsModel.cpp (+8/-0)
plugins/Utils/constants.cpp (+6/-1)
plugins/Utils/constants.h (+5/-5)
qml/Shell.qml (+1/-1)
src/ShellApplication.cpp (+1/-1)
tests/mocks/Utils/constants.cpp (+2/-1)
tests/mocks/Utils/constants.h (+5/-5)
- Łukasz Zemczak: Approve
- Albert Astals Cid (community): Abstain
- Ubuntu Phablet Team: Pending requested
-
Diff: 163 lines (+28/-19)10 files modifiedetc/profile.d/upstart-phablet.sh (+1/-1)
ubuntu-touch-lightdm-session (+1/-1)
ubuntu-touch-session (+9/-9)
upstart-session/bluez-mpris-proxy.conf (+1/-1)
upstart-session/cameraservice-trust-stored.conf (+1/-1)
upstart-session/obexd.conf (+1/-1)
upstart-session/ofono-setup.conf (+1/-1)
upstart-session/pulseaudio-trust-stored.conf (+1/-1)
upstart-session/pulseaudio.conf (+11/-2)
usc-wrapper (+1/-1)
- system-apps-ci-bot: Needs Fixing (continuous-integration)
- Ubuntu Phablet Team: Pending requested
-
Diff: 2840 lines (+1499/-148)63 files modified.bzrignore (+0/-2)
debian/control (+7/-2)
debian/rules (+1/-1)
snapcraft.yaml (+8/-16)
src/Ubuntu/Web/ua-overrides-desktop.js.in (+9/-0)
src/Ubuntu/Web/ua-overrides-mobile.js.in (+3/-0)
src/app/ChromeBase.qml (+1/-0)
src/app/webbrowser/Browser.qml (+158/-29)
src/app/webbrowser/BrowserTab.qml (+19/-2)
src/app/webbrowser/CMakeLists.txt (+2/-0)
src/app/webbrowser/Chrome.qml (+12/-2)
src/app/webbrowser/ContextMenuMobile.qml (+10/-2)
src/app/webbrowser/Suggestions.qml (+1/-1)
src/app/webbrowser/TabComponent.qml (+33/-15)
src/app/webbrowser/TabItem.qml (+2/-2)
src/app/webbrowser/TabsBar.qml (+112/-15)
src/app/webbrowser/TabsList.qml (+2/-2)
src/app/webbrowser/drag-helper.cpp (+203/-0)
src/app/webbrowser/drag-helper.h (+91/-0)
src/app/webbrowser/reparenter.cpp (+124/-0)
src/app/webbrowser/reparenter.h (+46/-0)
src/app/webbrowser/webbrowser-app.cpp (+6/-0)
src/app/webbrowser/webbrowser-app.qml (+33/-3)
src/app/webcontainer/ContextMenuMobile.qml (+10/-2)
src/app/webcontainer/WebappWebview.qml (+5/-4)
tests/autopilot/webbrowser_app/emulators/browser.py (+7/-1)
tests/autopilot/webbrowser_app/tests/__init__.py (+40/-7)
tests/autopilot/webbrowser_app/tests/test_downloads.py (+62/-10)
tests/autopilot/webbrowser_app/tests/test_history.py (+30/-4)
tests/autopilot/webbrowser_app/tests/test_multiple_windows.py (+222/-0)
tests/autopilot/webbrowser_app/tests/test_new_tab_view.py (+10/-0)
tests/unittests/bookmarks-folder-model/CMakeLists.txt (+1/-1)
tests/unittests/bookmarks-folderlist-model/CMakeLists.txt (+1/-1)
tests/unittests/bookmarks-model/CMakeLists.txt (+1/-1)
tests/unittests/container-url-patterns/CMakeLists.txt (+1/-1)
tests/unittests/cookie-store/CMakeLists.txt (+1/-1)
tests/unittests/domain-utils/CMakeLists.txt (+1/-1)
tests/unittests/downloads-model/CMakeLists.txt (+1/-1)
tests/unittests/favicon-fetcher/CMakeLists.txt (+1/-1)
tests/unittests/history-domain-model/CMakeLists.txt (+1/-1)
tests/unittests/history-domainlist-model/CMakeLists.txt (+1/-1)
tests/unittests/history-lastvisitdatelist-model/CMakeLists.txt (+1/-1)
tests/unittests/history-model/CMakeLists.txt (+1/-1)
tests/unittests/intent-filter/CMakeLists.txt (+1/-1)
tests/unittests/limit-proxy-model/CMakeLists.txt (+1/-1)
tests/unittests/meminfo/CMakeLists.txt (+1/-1)
tests/unittests/oxide-cookie-helper/CMakeLists.txt (+1/-1)
tests/unittests/qml/CMakeLists.txt (+2/-0)
tests/unittests/qml/ReparenterFakeContainer.qml (+40/-0)
tests/unittests/qml/ReparenterFakeTab.qml (+37/-0)
tests/unittests/qml/tst_BrowserTab.qml (+3/-2)
tests/unittests/qml/tst_QmlTests.cpp (+7/-0)
tests/unittests/qml/tst_Reparenter.qml (+114/-0)
tests/unittests/qml/tst_TabsBar.qml (+2/-0)
tests/unittests/qml/tst_UbuntuWebView02.qml (+1/-0)
tests/unittests/search-engine/CMakeLists.txt (+1/-1)
tests/unittests/session-storage/CMakeLists.txt (+1/-1)
tests/unittests/session-utils/CMakeLists.txt (+1/-1)
tests/unittests/single-instance-manager/CMakeLists.txt (+1/-1)
tests/unittests/tabs-model/CMakeLists.txt (+1/-1)
tests/unittests/text-search-filter-model/CMakeLists.txt (+1/-1)
tests/unittests/webapp-container-color-helper/CMakeLists.txt (+1/-1)
tests/unittests/webapp-container-hook/CMakeLists.txt (+1/-1)
- unity-api-1-bot: Needs Fixing (continuous-integration)
- Charles Kerr (community): Approve
-
Diff: 9 lines (+1/-1)1 file modifieddata/indicator-sound.conf.in (+1/-1)
- unity-api-1-bot: Needs Fixing (continuous-integration)
- Indicator Applet Developers: Pending requested
-
Diff: 9 lines (+1/-1)1 file modifieddata/indicator-transfer.conf.in (+1/-1)
- unity-api-1-bot: Approve (continuous-integration)
- Indicator Applet Developers: Pending requested
-
Diff: 9 lines (+1/-1)1 file modifieddata/indicator-session.conf.in (+1/-1)
- unity-api-1-bot: Approve (continuous-integration)
- Indicator Applet Developers: Pending requested
-
Diff: 9 lines (+1/-1)1 file modifieddata/indicator-printers.conf.in (+1/-1)
- unity-api-1-bot: Needs Fixing (continuous-integration)
- Indicator Applet Developers: Pending requested
-
Diff: 9 lines (+1/-1)1 file modifieddata/indicator-power.conf.in (+1/-1)
- Antti Kaijanmäki (community): Approve
- unity-api-1-bot: Approve (continuous-integration)
-
Diff: 19 lines (+2/-2)2 files modifieddata/indicator-network-secret-agent.conf.in (+1/-1)
data/indicator-network.conf.in (+1/-1)
- unity-api-1-bot: Approve (continuous-integration)
- Indicator Applet Developers: Pending requested
-
Diff: 9 lines (+1/-1)1 file modifieddata/indicator-messages.conf.in (+1/-1)
- unity-api-1-bot: Approve (continuous-integration)
- Indicator Applet Developers: Pending requested
-
Diff: 9 lines (+1/-1)1 file modifieddata/indicator-location.conf.in (+1/-1)
- unity-api-1-bot: Needs Fixing (continuous-integration)
- dobey (community): Approve
-
Diff: 9 lines (+1/-1)1 file modifieddata/indicator-keyboard.conf.in (+1/-1)
- Lukáš Tinkl (community): Needs Information
- unity-api-1-bot: Needs Fixing (continuous-integration)
-
Diff: 9 lines (+1/-1)1 file modifieddata/indicator-datetime.conf.in (+1/-1)
- unity-api-1-bot: Approve (continuous-integration)
- Indicator Applet Developers: Pending requested
-
Diff: 9 lines (+1/-1)1 file modifieddata/indicator-bluetooth.conf.in (+1/-1)
- Indicator Applet Developers: Pending requested
-
Diff: 11 lines (+1/-1)1 file modifieddata/indicator-application.conf.in (+1/-1)
- system-apps-ci-bot: Needs Fixing (continuous-integration)
- Ubuntu Phablet Team: Pending requested
-
Diff: 277 lines (+179/-7)7 files modifiedplugins/westernsupport/spellchecker.cpp (+6/-1)
snapcraft.yaml (+106/-0)
snappy-qt5.conf (+2/-0)
src/lib/logic/wordengine.cpp (+11/-1)
src/plugin/inputmethod.cpp (+7/-2)
src/plugin/inputmethod_p.h (+17/-3)
ubuntu-keyboard-wrapper.sh (+30/-0)
- Renato Araujo Oliveira Filho (community): Approve
-
Diff: 49 lines (+6/-6)4 files modifiedupdater/ab-update-buteo-import.cpp (+1/-1)
updater/ab-update.cpp (+3/-3)
upstart/address-book-service.conf.in (+1/-1)
upstart/address-book-updater.conf.in (+1/-1)
- Paweł Stołowski (community): Approve
- unity-api-1-bot: Approve (continuous-integration)
- Mediascanner Team: Pending requested
-
Diff: 9 lines (+1/-1)1 file modifiedmediascanner-2.0.conf.in (+1/-1)
- Ted Gould (community): Approve
- unity-api-1-bot: Approve (continuous-integration)
-
Diff: 10 lines (+1/-1)1 file modifieddata/unity8-policy-kit.conf.in (+1/-1)
- Michael Sheldon (community): Approve
- system-apps-ci-bot: Approve (continuous-integration)
-
Diff: 223 lines (+26/-31)9 files modifiedCMakeLists.txt (+3/-14)
address-book-app.wrapper (+0/-2)
config.h.in (+0/-1)
debian/control.in (+2/-1)
src/app/addressbookapp.cpp (+3/-2)
src/imports/ABContactListPage.qml (+7/-1)
src/imports/ABNewContactBottomEdge.qml (+2/-0)
src/imports/MainWindow.qml (+8/-7)
tests/qml/tst_ContactList.qml (+1/-3)
- Gustavo Pichorim Boiko (community): Approve
- system-apps-ci-bot: Approve (continuous-integration)
-
Diff: 31 lines (+5/-2)1 file modifiedconfig.h.in (+5/-2)
- Gustavo Pichorim Boiko (community): Approve
- system-apps-ci-bot: Needs Fixing (continuous-integration)
-
Diff: 31 lines (+5/-2)1 file modifiedconfig.h.in (+5/-2)
- Jim Hodapp (community): Approve (code)
- system-apps-ci-bot: Approve (continuous-integration)
-
Diff: 299 lines (+210/-31)5 files modifiedconfig.h.in (+5/-1)
mediaplayer-app.wrapper (+0/-23)
setup/gui/mediaplayer-app.desktop (+174/-0)
snap/mediaplayer-app.wrapper (+14/-0)
snapcraft.yaml (+17/-7)
- system-apps-ci-bot: Needs Fixing (continuous-integration)
- Ubuntu Phablet Team: Pending requested
-
Diff: 128 lines (+29/-30)4 files modifiedconfig.h.in (+15/-11)
debian/control (+1/-0)
snap/camera.wrapper (+1/-1)
snapcraft.yaml (+12/-18)
- Tiago Salem Herrmann (community): Approve
- system-apps-ci-bot: Approve (continuous-integration)
-
Diff: 112 lines (+86/-2)2 files modifiedconfig.h.in (+4/-2)
snapcraft.yaml (+82/-0)
- Arthur Mello (community): Approve
- system-apps-ci-bot: Approve (continuous-integration)
-
Diff: 34 lines (+8/-2)1 file modifiedsrc/config.h.in (+8/-2)
- Gustavo Pichorim Boiko (community): Approve
- system-apps-ci-bot: Needs Fixing (continuous-integration)
-
Diff: 66 lines (+48/-1)2 files modifieddaemon/pluginmanager.cpp (+1/-1)
snapcraft.yaml (+47/-0)
- Ubuntu Phablet Team: Pending requested
-
Diff: 90 lines (+22/-19)3 files modifieddebian/control (+1/-0)
snap/camera.wrapper (+8/-1)
snapcraft.yaml (+13/-18)
description: | updated |
Changed in address-book-app (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Renato Araujo Oliveira Filho (renatofilho) |
importance: | Undecided → High |
Changed in ubuntu-system-settings (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Jonas G. Drange (jonas-drange) |
Changed in webbrowser-app (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Olivier Tilloy (osomon) |
Changed in ubuntu-terminal-app (Ubuntu): | |
importance: | Undecided → High |
assignee: | nobody → Michael Sheldon (michael-sheldon) |
Changed in dialer-app (Ubuntu): | |
importance: | Undecided → High |
assignee: | nobody → Gustavo Pichorim Boiko (boiko) |
Changed in messaging-app (Ubuntu): | |
importance: | Undecided → High |
assignee: | nobody → Tiago Salem Herrmann (tiagosh) |
Changed in unity8 (Ubuntu): | |
assignee: | nobody → Michael Terry (mterry) |
Changed in unity8 (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → High |
Changed in unity-scopes-api (Ubuntu): | |
assignee: | nobody → Michael Terry (mterry) |
Changed in unity-scopes-shell (Ubuntu): | |
assignee: | nobody → Michael Terry (mterry) |
Changed in unity-scopes-api (Ubuntu): | |
status: | New → In Progress |
Changed in unity-scopes-shell (Ubuntu): | |
status: | New → In Progress |
Changed in ubuntu-system-settings (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in ubuntu-filemanager-app: | |
assignee: | nobody → Renato Araujo Oliveira Filho (renatofilho) |
status: | New → In Progress |
no longer affects: | unity-scope-click (Ubuntu) |
Changed in dialer-app (Ubuntu): | |
status: | New → Fix Committed |
Changed in messaging-app (Ubuntu): | |
status: | New → Fix Released |
Changed in ubuntu-filemanager-app: | |
status: | Fix Committed → Fix Released |
Changed in ubuntu-terminal-app (Ubuntu): | |
status: | New → Fix Released |
Changed in history-service (Ubuntu): | |
status: | New → In Progress |
Changed in ubuntu-keyboard (Ubuntu): | |
assignee: | nobody → Michael Sheldon (michael-sheldon) |
status: | New → In Progress |
Changed in messaging-app (Ubuntu): | |
status: | Fix Released → In Progress |
assignee: | Tiago Salem Herrmann (tiagosh) → Renato Araujo Oliveira Filho (renatofilho) |
Changed in dialer-app (Ubuntu): | |
assignee: | Gustavo Pichorim Boiko (boiko) → Renato Araujo Oliveira Filho (renatofilho) |
status: | Fix Committed → In Progress |
Changed in address-book-service (Ubuntu): | |
status: | New → In Progress |
Changed in address-book-app (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in history-service (Ubuntu): | |
status: | In Progress → New |
Changed in indicator-bluetooth (Ubuntu): | |
status: | New → In Progress |
Changed in indicator-keyboard (Ubuntu): | |
status: | New → In Progress |
Changed in indicator-location (Ubuntu): | |
status: | New → In Progress |
Changed in indicator-messages (Ubuntu): | |
status: | New → In Progress |
Changed in indicator-network (Ubuntu): | |
status: | New → In Progress |
Changed in indicator-power (Ubuntu): | |
status: | New → In Progress |
Changed in indicator-session (Ubuntu): | |
status: | New → In Progress |
Changed in indicator-sound (Ubuntu): | |
status: | New → In Progress |
Changed in indicator-transfer (Ubuntu): | |
status: | New → In Progress |
Changed in mediascanner2 (Ubuntu): | |
status: | New → In Progress |
Changed in ubuntu-touch-session (Ubuntu): | |
status: | New → In Progress |
Changed in unity-scope-scopes (Ubuntu): | |
status: | New → Won't Fix |
Changed in unity-scopes-api (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in telephony-service (Ubuntu): | |
assignee: | nobody → Roberto Mier Escandón (rmescandon) |
status: | New → In Progress |
Changed in canonical-devices-system-image: | |
assignee: | nobody → Pat McGowan (pat-mcgowan) |
importance: | Undecided → High |
milestone: | none → p1 |
status: | New → In Progress |
Changed in maliit-framework (Ubuntu): | |
status: | Fix Released → In Progress |
Changed in ubuntu-keyboard (Ubuntu): | |
status: | Fix Released → In Progress |
Changed in camera-app (Ubuntu): | |
status: | New → In Progress |
Changed in gallery-app (Ubuntu): | |
status: | New → In Progress |
Changed in mediaplayer-app (Ubuntu): | |
status: | New → In Progress |
Changed in indicator-network (Ubuntu): | |
importance: | Undecided → Critical |
no longer affects: | pay-service (Ubuntu) |
Changed in camera-app (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in history-service (Ubuntu): | |
status: | New → Fix Released |
Changed in indicator-display (Ubuntu): | |
assignee: | nobody → Charles Kerr (charlesk) |
Changed in sync-monitor (Ubuntu): | |
assignee: | nobody → Renato Araujo Oliveira Filho (renatofilho) |
Changed in canonical-devices-system-image: | |
milestone: | p1 → p2 |
Changed in canonical-devices-system-image: | |
assignee: | Pat McGowan (pat-mcgowan) → Bill Filler (bfiller) |
Changed in ubuntu-keyboard (Ubuntu): | |
status: | In Progress → Fix Released |
Not all the attached packages have the exact same cause listed in the description. But they all have hardcoded paths at build time that don't facilitate run-time relocation in a snap.
One answer is certainly to just build them differently when we include them in a snap. But most of these work in a click context, so must have some support for relocation. Plus, it would be a nice-to-have to support just pulling them in from the archive.