zeitgeist team mailing list archive
-
zeitgeist team
-
Mailing list archive
-
Message #03872
[Branch ~zeitgeist/zeitgeist/bluebird] Rev 212: Catch error opening local extensions directory.
------------------------------------------------------------
revno: 212
committer: Siegfried-Angel Gevatter Pujals <siegfried@xxxxxxxxxxxx>
branch nick: bluebird
timestamp: Thu 2011-09-01 18:54:26 +0200
message:
Catch error opening local extensions directory.
modified:
src/extension-collection.vala
--
lp:~zeitgeist/zeitgeist/bluebird
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird
Your team Zeitgeist Framework Team is subscribed to branch lp:~zeitgeist/zeitgeist/bluebird.
To unsubscribe from this branch go to https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird/+edit-subscription
=== modified file 'src/extension-collection.vala'
--- src/extension-collection.vala 2011-08-31 12:23:34 +0000
+++ src/extension-collection.vala 2011-09-01 16:54:26 +0000
@@ -72,7 +72,16 @@
// TODO: load extensions from system & user directories, and make
// sure the order is correct
unowned string ext_dir1 = Utils.get_local_extensions_path ();
- Dir? user_ext_dir = Dir.open (ext_dir1);
+ Dir? user_ext_dir;
+ try
+ {
+ user_ext_dir = Dir.open (ext_dir1);
+ }
+ catch (Error e)
+ {
+ warning (
+ "Couldn't open local extensions directory: %s", e.message);
+ }
if (user_ext_dir != null)
{
unowned string? file_name = user_ext_dir.read_name ();