~stolowski/unity-2d/wallpaper-kludge-removal

« back to all changes in this revision

Viewing changes to shell/WallpaperColor.qml

  • Committer: Pawel Stolowski
  • Date: 2012-04-24 17:25:03 UTC
  • Revision ID: pawel.stolowski@canonical.com-20120424172503-fdhzgw6yd6fi7f9c
Removed ubuntu wallpaper symlink and workaround in qml code to deal with incorrect
file extension of ubuntu wallpaper.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    ImageUtilities {
42
42
        id: imageUtilities
43
43
        source: {
44
 
            /* FIXME: Because /usr/share/backgrounds/warty-final-ubuntu.png is
45
 
                      actually a jpeg and Qt relies by default on the extension
46
 
                      that particular background fails to load. We workaround
47
 
                      it by having our own symlink with a 'jpg' extension.
48
 
 
49
 
               References:
50
 
               https://bugs.launchpad.net/ubuntu/+source/ubuntu-wallpapers/+bug/296538
51
 
               http://bugreports.qt.nokia.com/browse/QTBUG-7276
52
 
            */
53
44
            var filename = backgroundFilename.unencoded /* path is urlencoded */
54
 
            if(filename == "file:///usr/share/backgrounds/warty-final-ubuntu.png")
55
 
                filename = "/usr/share/unity-2d/warty-final-ubuntu.jpg"
56
45
            return filename
57
46
        }
58
47
    }