After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 563090 - An ¨Audio Disc¨ icon appears on the desktop when reading a cdda file
An ¨Audio Disc¨ icon appears on the desktop when reading a cdda file
Status: RESOLVED INVALID
Product: glib
Classification: Platform
Component: gio
unspecified
Other All
: Normal major
: ---
Assigned To: gtkdev
gtkdev
: 562425 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-12-03 08:31 UTC by xin.lai
Modified: 2009-03-05 14:10 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description xin.lai 2008-12-03 08:31:07 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
Comment 1 David Zeuthen (not reading bugmail) 2008-12-04 02:17:25 UTC
This is a caused by applying a vendor patch to GVfs; see bug 562425 comment 14 for details.
Comment 2 Bastien Nocera 2008-12-04 10:52:32 UTC
*** Bug 562425 has been marked as a duplicate of this bug. ***
Comment 3 Bastien Nocera 2009-03-05 14:10:29 UTC
*** Bug 572521 has been marked as a duplicate of this bug. ***