summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmat/parser.py4
-rw-r--r--mat.desktop2
-rw-r--r--nautilus/nautilus-mat.py6
3 files changed, 8 insertions, 4 deletions
diff --git a/libmat/parser.py b/libmat/parser.py
index b81b576..73bebdd 100644
--- a/libmat/parser.py
+++ b/libmat/parser.py
@@ -51,7 +51,7 @@ class GenericParser(object):
51 def create_backup_copy(self): 51 def create_backup_copy(self):
52 """ Create a backup copy 52 """ Create a backup copy
53 """ 53 """
54 shutil.copy2(self.filename, os.path.join(self.filename, '.bak')) 54 shutil.copy2(self.filename, self.filename + '.bak')
55 55
56 def do_backup(self): 56 def do_backup(self):
57 """ Keep a backup of the file if asked. 57 """ Keep a backup of the file if asked.
@@ -60,7 +60,7 @@ class GenericParser(object):
60 but it greatly simplify new strippers implementation. 60 but it greatly simplify new strippers implementation.
61 """ 61 """
62 if self.backup: 62 if self.backup:
63 shutil.move(self.filename, os.path.join(self.filename, '.bak')) 63 shutil.move(self.filename, self.filename + '.bak')
64 else: 64 else:
65 mat.secure_remove(self.filename) 65 mat.secure_remove(self.filename)
66 shutil.move(self.output, self.filename) 66 shutil.move(self.output, self.filename)
diff --git a/mat.desktop b/mat.desktop
index 8bb3c06..e669656 100644
--- a/mat.desktop
+++ b/mat.desktop
@@ -1,5 +1,5 @@
1[Desktop Entry] 1[Desktop Entry]
2Categories=Utility;Security;System; 2Categories=Utility;Security;
3Exec=mat-gui 3Exec=mat-gui
4GenericName=Metadata Anonymisation Toolkit 4GenericName=Metadata Anonymisation Toolkit
5Icon=mat 5Icon=mat
diff --git a/nautilus/nautilus-mat.py b/nautilus/nautilus-mat.py
index 0974bef..ff102b8 100644
--- a/nautilus/nautilus-mat.py
+++ b/nautilus/nautilus-mat.py
@@ -77,7 +77,7 @@ class MatExtension(GObject.GObject, Nautilus.MenuProvider):
77 :param current_file: Name of the selected file 77 :param current_file: Name of the selected file
78 :param menu: Menu id from which the callback was activated. Unused. 78 :param menu: Menu id from which the callback was activated. Unused.
79 """ 79 """
80 if file.is_gone(): 80 if current_file.is_gone():
81 return 81 return
82 82
83 # files url in nautilus are starting with 'file://', of length 7 83 # files url in nautilus are starting with 'file://', of length 7
@@ -93,3 +93,7 @@ class MatExtension(GObject.GObject, Nautilus.MenuProvider):
93 self.show_message(_("Unable to clean %s") % file_path, Gtk.MessageType.ERROR) 93 self.show_message(_("Unable to clean %s") % file_path, Gtk.MessageType.ERROR)
94 else: 94 else:
95 self.show_message(_("Unable to process %s") % file_path, Gtk.MessageType.ERROR) 95 self.show_message(_("Unable to process %s") % file_path, Gtk.MessageType.ERROR)
96
97 # Workaround https://bugzilla.gnome.org/show_bug.cgi?id=784278
98 def get_background_items(self, window, file):
99 return None