54 lines
1.7 KiB
Diff
54 lines
1.7 KiB
Diff
|
--- lxsession-db/desktop-files-backend.vala.orig 2014-10-17 18:54:57.000000000 +0200
|
||
|
+++ lxsession-db/desktop-files-backend.vala 2014-10-19 20:50:49.587801950 +0200
|
||
|
@@ -254,16 +254,8 @@
|
||
|
{
|
||
|
foreach (string folder in default_available)
|
||
|
{
|
||
|
- var dir_log = File.new_for_path (folder);
|
||
|
- if (dir_log.query_exists ())
|
||
|
- {
|
||
|
- message ("Scanning folder: %s", folder);
|
||
|
- list_desktop_files.begin (folder, "available");
|
||
|
- }
|
||
|
- else
|
||
|
- {
|
||
|
- message ("%s doesn't exist. Pass", folder);
|
||
|
- }
|
||
|
+ message ("Scanning folder: %s", folder);
|
||
|
+ list_desktop_files.begin (folder, "available");
|
||
|
}
|
||
|
}
|
||
|
else
|
||
|
@@ -323,21 +315,21 @@
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
-
|
||
|
- if (mode == "installed")
|
||
|
- {
|
||
|
- finish_scanning_installed();
|
||
|
- }
|
||
|
- else if (mode == "available")
|
||
|
- {
|
||
|
- finish_scanning_available();
|
||
|
- }
|
||
|
-
|
||
|
}
|
||
|
catch (Error err)
|
||
|
{
|
||
|
stderr.printf ("Error: list_files failed: %s\n", err.message);
|
||
|
}
|
||
|
+
|
||
|
+ if (mode == "installed")
|
||
|
+ {
|
||
|
+ finish_scanning_installed();
|
||
|
+ }
|
||
|
+ else if (mode == "available")
|
||
|
+ {
|
||
|
+ finish_scanning_available();
|
||
|
+ }
|
||
|
+
|
||
|
message ("Finishing scanning\n");
|
||
|
}
|
||
|
|