[shotwell] When moving .gnome2, don't bail out needlessly
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] When moving .gnome2, don't bail out needlessly
- Date: Mon, 16 May 2016 19:21:48 +0000 (UTC)
commit aa3f39e86465842abd7a68aee71f7baa5c35cee5
Author: Jens Georg <mail jensge org>
Date: Mon May 16 21:21:00 2016 +0200
When moving .gnome2, don't bail out needlessly
Just ignore errors
Signed-off-by: Jens Georg <mail jensge org>
src/AppDirs.vala | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/AppDirs.vala b/src/AppDirs.vala
index bcda4ef..ecd375d 100644
--- a/src/AppDirs.vala
+++ b/src/AppDirs.vala
@@ -42,17 +42,12 @@ class AppDirs {
if (old_dir.query_exists() && !user_plugin_dir.get_parent().query_exists()) {
try {
user_plugin_dir.get_parent().make_directory_with_parents(null);
- } catch (Error err) {
- AppWindow.panic(_("Unable to create data directory %s:
%s").printf(user_plugin_dir.get_parent().get_path(),
- err.message));
- }
+ } catch (Error err) { }
}
try {
old_dir.move(user_plugin_dir, FileCopyFlags.NONE);
- } catch (Error err) {
- AppWindow.panic(_("Unable to move plugin directory: %s").printf(err.message));
- }
+ } catch (Error err) { }
File new_dir = get_data_dir();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]