← Back to team overview

dx-packages team mailing list archive

[Bug 1629009] Re: Does not work inside a snap due to hardcoded paths

 

** 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

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to indicator-transfer in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1629009

Title:
  Does not work inside a snap due to hardcoded paths

Status in Ubuntu File Manager App:
  Fix Released
Status in address-book-app package in Ubuntu:
  In Progress
Status in address-book-service package in Ubuntu:
  In Progress
Status in dialer-app package in Ubuntu:
  In Progress
Status in history-service package in Ubuntu:
  New
Status in indicator-bluetooth package in Ubuntu:
  In Progress
Status in indicator-display package in Ubuntu:
  New
Status in indicator-keyboard package in Ubuntu:
  In Progress
Status in indicator-location package in Ubuntu:
  In Progress
Status in indicator-messages package in Ubuntu:
  In Progress
Status in indicator-network package in Ubuntu:
  In Progress
Status in indicator-power package in Ubuntu:
  In Progress
Status in indicator-session package in Ubuntu:
  In Progress
Status in indicator-sound package in Ubuntu:
  In Progress
Status in indicator-transfer package in Ubuntu:
  In Progress
Status in mediascanner2 package in Ubuntu:
  In Progress
Status in messaging-app package in Ubuntu:
  In Progress
Status in pay-service package in Ubuntu:
  New
Status in policykit-unity8 package in Ubuntu:
  Fix Released
Status in sync-monitor package in Ubuntu:
  New
Status in telephony-service package in Ubuntu:
  New
Status in ubuntu-keyboard package in Ubuntu:
  Fix Released
Status in ubuntu-system-settings package in Ubuntu:
  Fix Released
Status in ubuntu-terminal-app package in Ubuntu:
  Fix Released
Status in ubuntu-touch-session package in Ubuntu:
  In Progress
Status in unity-scope-scopes package in Ubuntu:
  Won't Fix
Status in unity-scopes-api package in Ubuntu:
  Fix Released
Status in unity-scopes-shell package in Ubuntu:
  Fix Released
Status in unity8 package in Ubuntu:
  Fix Released
Status in webbrowser-app package in Ubuntu:
  Fix Released

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-filemanager-app/+bug/1629009/+subscriptions