lxsession/lxsession-0.4.9.3-FileAttribute.Standard_Name.patch

35 lines
1.5 KiB
Diff
Raw Normal View History

Index: lxsession-0.4.9.3.git20130914/lxsession-db/desktop-files-backend.vala
===================================================================
--- lxsession-0.4.9.3.git20130914.orig/lxsession-db/desktop-files-backend.vala
+++ lxsession-0.4.9.3.git20130914/lxsession-db/desktop-files-backend.vala
@@ -182,7 +182,7 @@ namespace Lxsession
{
KeyFile kf = new KeyFile();
/* asynchronous call, to get directory entries */
- var e = yield dir.enumerate_children_async (FileAttribute.STANDARD_NAME,
+ var e = yield dir.enumerate_children_async (FILE_ATTRIBUTE_STANDARD_NAME,
0, Priority.DEFAULT);
while (true)
{
@@ -220,16 +220,16 @@ namespace Lxsession
{
/* No entry, just pass */;
}
- catch (FileError err)
+ catch (FileError err1)
{
- warning (err.message);
+ warning (err1.message);
}
}
}
}
- catch (Error err)
+ catch (Error err2)
{
- stderr.printf ("Error: list_files failed: %s\n", err.message);
+ stderr.printf ("Error: list_files failed: %s\n", err2.message);
}
message ("Finishing scanning\n");