[Goodies-commits] r5133 - xfburn/trunk/xfburn

Mario Danic mario at xfce.org
Fri Jul 18 13:39:51 CEST 2008


Author: mario
Date: 2008-07-18 11:39:51 +0000 (Fri, 18 Jul 2008)
New Revision: 5133

Modified:
   xfburn/trunk/xfburn/xfburn-device-list.c
Log:
Write a clue message if no drives detected

Modified: xfburn/trunk/xfburn/xfburn-device-list.c
===================================================================
--- xfburn/trunk/xfburn/xfburn-device-list.c	2008-07-18 11:23:25 UTC (rev 5132)
+++ xfburn/trunk/xfburn/xfburn-device-list.c	2008-07-18 11:39:51 UTC (rev 5133)
@@ -160,7 +160,7 @@
     }
 
     burn_drive_free_speedlist (&speed_list); 
-    device->supported_cdr_speeds = g_slist_sort (device->supported_cdr_speeds, &cmp_ints);
+    device->supported_cdr_speeds    g_warning ("no profile could be retrieved"); = g_slist_sort (device->supported_cdr_speeds, &cmp_ints);
   } else if (ret == 0 || speed_list == NULL) {
     g_warning ("reported speed list is empty for device:");
     g_warning (DEVICE_INFO_PRINTF);
@@ -267,8 +267,10 @@
   if (ret < 0)
     g_warning ("An error occurred while scanning for available drives!");
 
-  if (n_drives < 1)
+  if (n_drives < 1) {
     g_warning ("No drives were found!");
+    DBG ("Check if you have r/w permissions to optical drives!");
+  }
 
   for (i = 0; i < n_drives; i++) {
     XfburnDevice *device = g_new0 (XfburnDevice, 1);




More information about the Goodies-commits mailing list