Public bug reported:

version 0.5+15.10.20150817-0ubuntu3

The system is running Xenial + unity8-desktop-session-mir to boot into
the Unity8 session.

What happens is that all the .click apps I manually installed
(via "sudo click install --user=<user> --allow-unauthenticated <click_pkg>")
have an incomplete XDG_DATA_DIRS set.

If I open the terminal app and run "env", the value of XDG_DATA_DIRS is 
/opt/click.ubuntu.com/.click/users/<username_here>/com.ubuntu.terminal

Now, the UITK theme icons provider uses 
QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation)
http://bazaar.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/staging/view/1826/src/Ubuntu/Components/plugin/unitythemeiconprovider.cpp#L79

and since the Linux implementation of GenericDataLocation is
https://github.com/qtproject/qtbase/blob/5.5/src/corelib/io/qstandardpaths_unix.cpp#L309

that causes the application to only look for themes which are inside its
own app directory.

As a consequence, click apps fails to load theme icons :)

NOTE: this doesn't happen for apps that come preinstalled, i.e. system-
settings, webbrowser-app, and unity8-dash. They can display theme icons
just fine.

** Affects: ubuntu-app-launch (Ubuntu)
     Importance: Undecided
     Assignee: Ted Gould (ted)
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1541037

Title:
  Xenial+Unity8 session: click apps can't load theme icons because of
  missing paths in XDG_DATA_DIRS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-app-launch/+bug/1541037/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to