Music app's grilo plugin package needs to depend on mediascanner

Bug #1241403 reported by Riccardo Padovani
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
QtDeclarative bindings for the Grilo media scanner
Fix Released
High
Victor Thompson
Ubuntu Music App
Fix Released
Low
Unassigned
mediascanner
Invalid
Undecided
Unassigned

Bug Description

If you try to start the app on a desktop with the name of the Music folder localized (e.g "Musica"), the app doesn't start.

Related branches

Revision history for this message
Victor Thompson (vthompson) wrote :

Thanks for reporting this. The mediascanner-service scans more than just ~/Music, so it should pick up anything in the user's $HOME directory.

Changed in music-app:
status: New → Incomplete
Revision history for this message
James Henstridge (jamesh) wrote :

The default configuration for the media scanner searches the XDG music, videos, pictures and downloads folders. That is, the outputs of the following commands:

    xdg-user-dir MUSIC
    xdg-user-dir VIDEOS
    xdg-user-dir PICTURES
    xdg-user-dir DOWNLOAD

Do those commands show the directories you'd expect to be searched? If not, is there a ~/.config/user-dirs.dirs file in your home directory, and does its contents look sane?

Revision history for this message
Barra (barra78) wrote :

IMHO It's not a language error:

barra@Saucy:~/Scrivania$ xdg-user-dir MUSIC
/home/barra/Musica
barra@Saucy:~/Scrivania$ xdg-user-dir MUSIC
/home/barra/Musica
barra@Saucy:~/Scrivania$ xdg-user-dir VIDEOS
/home/barra/Video
barra@Saucy:~/Scrivania$ xdg-user-dir PICTURES
/home/barra/Immagini
barra@Saucy:~/Scrivania$ xdg-user-dir DOWNLOAD
/home/barra/Scaricati

But starting app in terminal:

barra@Saucy:~$ music-app
unity::action::ActionManager::ActionManager(QObject*):
 Could not determine application identifier. HUD will not work properly.
 Provide your application identifier in $APP_ID environment variable.
Debug: Queue: Now has: 0 tracks
Tracks in playlist onCountChanged: 0
Debug: onCountChanged: 0
UCUriHandler: Empty "APP_ID" environment variable, ignoring.
file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/Icon.qml:77:5: QML Image: Failed to get image from provider: image://theme/share
file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/Icon.qml:77:5: QML Image: Failed to get image from provider: image://theme/delete
file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/Icon.qml:77:5: QML Image: Failed to get image from provider: image://theme/edit
Registry is ready
Available ? true
griloModel.count 0
[30,125,124,123,122,121,29,120,40,119,118,117,28,25,33,116,31,115,44,114,22,7,47,113,21,46,49,36,112,111,41,20,110,109,108,19,107,18,17,16,106,105,45,104,39,103,102,23,14,101,100,99,98,97,96,95,94,93,92,91,90,13,12,89,88,37,87,43,11,38,86,32,85,84,83,9,82,48,8,34,26,81,80,79,78,77,76,75,5,74,73,72,71,70,69,68,67,66,65,64,35,63,62,61,3,60,4,2,59,58,57,56,55,54,1]
[]
Refreshing
Debug: Version 1.0
Debug: Arguments on startup: Debug: false
Debug: Arguments on startup: Debug: false and file:
INITIALIZED in tracks
Playlist DB is version
DB: No change in playlist.
file:///usr/share/music-app/MusicPlaylists.qml:574: ReferenceError: playlist is not defined
Operation failed Cannot open media index params at ""/home/barra/.cache/mediascanner"": g-file-error-quark(4): File o directory non esistente
file:///usr/share/music-app/MusicPlaylists.qml:574: ReferenceError: playlist is not defined

Revision history for this message
Barra (barra78) wrote :

note: MediaScanner is not installed as a dependency when you install the music-app

Revision history for this message
James Henstridge (jamesh) wrote :

So if you install the "mediascanner" package, do things work as expected?

Unless there is some use case I haven't thought of, it seems like a bug that grilo-plugins-0.2-mediascanner doesn't depend on the mediascanner package. Since Grilo plugins are loaded at runtime, the only reason a package would ever depend on grilo-plugins-0.2-mediascanner (as opposed to suggesting or recommending it) is if it is a hard dependency.

Revision history for this message
Andrew Hayzen (ahayzen) wrote :

I had to manually install the mediascanner package to get the Music app to find music on my system.

Guess it should be a dependency somewhere.

David Planella (dpm)
Changed in qtgrilo:
status: New → Triaged
importance: Undecided → High
summary: - On desktop App doesn't find music if system language isn't english
+ Music app's grilo plugin package needs to depend on mediascanner
Changed in music-app:
status: Incomplete → Triaged
Changed in qtgrilo:
status: Triaged → In Progress
assignee: nobody → Victor Thompson (vthompson)
Changed in qtgrilo:
status: In Progress → Fix Committed
David Planella (dpm)
Changed in music-app:
status: Triaged → Fix Released
importance: Undecided → Low
Changed in qtgrilo:
status: Fix Committed → Fix Released
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

This doesn't appear to be fixed. I just installed in a VM and had to manually install mediascanner and run it to see any music.

Revision history for this message
Victor Thompson (vthompson) wrote :

I recall having to do the same just last week upon rebuilding my VM. I think we just need a new build? [1] The last one was back in June 2013.

[1] http://packages.ubuntu.com/trusty/amd64/libs/qtdeclarative5-qtgrilo0.1

Revision history for this message
Victor Thompson (vthompson) wrote :

Well, not June, but September, rather.

Changed in mediascanner:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.