ubuntu-apps-bugs team mailing list archive
-
ubuntu-apps-bugs team
-
Mailing list archive
-
Message #10126
[Bug 1629009] [NEW] Does not work inside a snap due to hardcoded paths
Public bug reported:
Some apps can't find their main qml file. Error messages like:
"file:///build/messaging-app-gcXPE6/messaging-
app-0.1+16.04.20160831/src/qml/messaging-app.qml: File not found"
(in my case, the file was in /snap/unity8-session/x24/usr/share
/messaging-app/messaging-app.qml)
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 isRunningInstalled() {
static bool installed = (QCoreApplication::applicationDirPath() ==
QDir(("@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@")).canonicalPath());
return installed;
}
inline QString messagingAppDirectory() {
if (isRunningInstalled()) {
return QString("@CMAKE_INSTALL_PREFIX@/@MESSAGING_APP_DIR@/");
} else {
return QString("@CMAKE_SOURCE_DIR@/src/qml/");
}
}
inline QString ubuntuPhonePluginPath() {
if (isRunningInstalled()) {
return QString::null;
} else {
return QString("@CMAKE_SOURCE_DIR@/");
}
}
** Affects: address-book-app (Ubuntu)
Importance: Undecided
Status: New
** Affects: dialer-app (Ubuntu)
Importance: Undecided
Status: New
** Affects: messaging-app (Ubuntu)
Importance: Undecided
Status: New
** Affects: ubuntu-system-settings (Ubuntu)
Importance: Undecided
Status: New
** Affects: unity8 (Ubuntu)
Importance: Undecided
Status: New
** Affects: webbrowser-app (Ubuntu)
Importance: Undecided
Status: New
** Also affects: dialer-app (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
Some apps can't find their main qml file. Error messages like:
"file:///build/messaging-app-gcXPE6/messaging-
app-0.1+16.04.20160831/src/qml/messaging-app.qml: File not found"
+ (in my case, the file was in /snap/unity8-session/x24/usr/share
+ /messaging-app/messaging-app.qml)
+
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 isRunningInstalled() {
- static bool installed = (QCoreApplication::applicationDirPath() ==
- QDir(("@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@")).canonicalPath());
- return installed;
+ static bool installed = (QCoreApplication::applicationDirPath() ==
+ QDir(("@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@")).canonicalPath());
+ return installed;
}
inline QString messagingAppDirectory() {
- if (isRunningInstalled()) {
- return QString("@CMAKE_INSTALL_PREFIX@/@MESSAGING_APP_DIR@/");
- } else {
- return QString("@CMAKE_SOURCE_DIR@/src/qml/");
- }
+ if (isRunningInstalled()) {
+ return QString("@CMAKE_INSTALL_PREFIX@/@MESSAGING_APP_DIR@/");
+ } else {
+ return QString("@CMAKE_SOURCE_DIR@/src/qml/");
+ }
}
inline QString ubuntuPhonePluginPath() {
- if (isRunningInstalled()) {
- return QString::null;
- } else {
- return QString("@CMAKE_SOURCE_DIR@/");
- }
+ if (isRunningInstalled()) {
+ return QString::null;
+ } else {
+ return QString("@CMAKE_SOURCE_DIR@/");
+ }
}
** Also affects: webbrowser-app (Ubuntu)
Importance: Undecided
Status: New
** Also affects: address-book-app (Ubuntu)
Importance: Undecided
Status: New
** Also affects: ubuntu-system-settings (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Apps bug tracking, which is subscribed to messaging-app in Ubuntu.
https://bugs.launchpad.net/bugs/1629009
Title:
Does not work inside a snap due to hardcoded paths
Status in address-book-app package in Ubuntu:
New
Status in dialer-app package in Ubuntu:
New
Status in messaging-app package in Ubuntu:
New
Status in ubuntu-system-settings package in Ubuntu:
New
Status in unity8 package in Ubuntu:
New
Status in webbrowser-app package in Ubuntu:
New
Bug description:
Some apps can't find their main qml file. Error messages like:
"file:///build/messaging-app-gcXPE6/messaging-
app-0.1+16.04.20160831/src/qml/messaging-app.qml: File not found"
(in my case, the file was in /snap/unity8-session/x24/usr/share
/messaging-app/messaging-app.qml)
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 isRunningInstalled() {
static bool installed = (QCoreApplication::applicationDirPath() ==
QDir(("@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@")).canonicalPath());
return installed;
}
inline QString messagingAppDirectory() {
if (isRunningInstalled()) {
return QString("@CMAKE_INSTALL_PREFIX@/@MESSAGING_APP_DIR@/");
} else {
return QString("@CMAKE_SOURCE_DIR@/src/qml/");
}
}
inline QString ubuntuPhonePluginPath() {
if (isRunningInstalled()) {
return QString::null;
} else {
return QString("@CMAKE_SOURCE_DIR@/");
}
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/address-book-app/+bug/1629009/+subscriptions
Follow ups
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Sheldon, 2017-04-11
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Pat McGowan, 2017-01-04
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Launchpad Bug Tracker, 2017-01-03
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Launchpad Bug Tracker, 2016-12-13
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Launchpad Bug Tracker, 2016-12-13
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Launchpad Bug Tracker, 2016-12-11
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Rodney Dawes, 2016-12-05
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Launchpad Bug Tracker, 2016-12-03
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Launchpad Bug Tracker, 2016-12-02
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Launchpad Bug Tracker, 2016-12-02
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Launchpad Bug Tracker, 2016-12-02
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Launchpad Bug Tracker, 2016-12-02
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Launchpad Bug Tracker, 2016-12-02
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Launchpad Bug Tracker, 2016-11-30
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Launchpad Bug Tracker, 2016-11-30
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Launchpad Bug Tracker, 2016-11-30
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Launchpad Bug Tracker, 2016-11-30
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Bill Filler, 2016-11-29
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Pat McGowan, 2016-11-29
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Sheldon, 2016-11-29
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Terry, 2016-11-28
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Terry, 2016-11-18
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Launchpad Bug Tracker, 2016-11-16
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Terry, 2016-11-16
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Bill Filler, 2016-11-16
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Launchpad Bug Tracker, 2016-11-15
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Launchpad Bug Tracker, 2016-11-15
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Terry, 2016-11-11
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Terry, 2016-11-11
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Launchpad Bug Tracker, 2016-11-08
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Sheldon, 2016-11-04
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Bill Filler, 2016-11-01
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Launchpad Bug Tracker, 2016-10-26
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Launchpad Bug Tracker, 2016-10-26
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Terry, 2016-10-12
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Terry, 2016-10-12
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Terry, 2016-10-11
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Terry, 2016-10-11
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Terry, 2016-10-11
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Terry, 2016-10-11
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Terry, 2016-10-11
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Terry, 2016-10-11
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Terry, 2016-10-11
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Terry, 2016-10-11
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Terry, 2016-10-11
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Terry, 2016-10-07
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Terry, 2016-10-06
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Terry, 2016-10-06
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Renato Araujo Oliveira Filho, 2016-10-06
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Terry, 2016-10-05
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: Michael Terry, 2016-10-04
-
[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths
From: kevin gunn, 2016-09-29
-
[Bug 1629009] Re: Does not work inside a snap
From: Michael Terry, 2016-09-29