GNOME Bugzilla – Bug 563090
An ¨Audio Disc¨ icon appears on the desktop when reading a cdda file
Last modified: 2009-03-05 14:10:29 UTC
Please describe the problem: when reading a file that is from a url like "cdda://4#/dev/rdsk/c0t0d0s2", meaning that the file is a song in the cd,with GFile* file = g_file_new_for_uri (url); stream = g_file_read (file, NULL, &error); an ¨Audio Disc¨ icon will be adder on the desktop. And when reading another file in the cd,another icon will appear.So after playing all the songs in the cd, there are many icons on the desktop. Itś terrible! Steps to reproduce: 1. get a GFile pointer from an url begining with cdda:// by g_file_new_for_uri 2. use g_file_read to read the file like this stream = g_file_read (file, NULL, &error); 3. Actual results: An ¨Audio Disc¨ will be added on the desktop ,nothing returned from g_file_read and the message in error is ¨The specified location is not mounted¨ Expected results: the stream returned from g_file_read is not NULL Does this happen every time? yes Other information: I have written a test code,as follows: #include<gio/gio.h> #include<stdio.h> int main() { g_type_init(); GFileInputStream *stream; GError *error = NULL; const char *url = "cdda://4#/dev/rdsk/c0t0d0s2";////this url represents the 4th song in my cd GFile* file = g_file_new_for_uri (url); stream = g_file_read (file, NULL, &error); if (stream == NULL) { printf("read nothing from %s !Error:%s\n",url,error->message); }else{ printf("have got sth from %s!\n",url); } return 0; } The result of it is that an ¨Audio Disc¨ icon appears on the desktop and this sentence will be printed on the screen: read nothing from cdda://4#/dev/rdsk/c0t0d0s2 !Error:The specified location is not mounted
This is a caused by applying a vendor patch to GVfs; see bug 562425 comment 14 for details.
*** Bug 562425 has been marked as a duplicate of this bug. ***
*** Bug 572521 has been marked as a duplicate of this bug. ***