File 000-strip-RPMDELETE-suffix.patch of Package plank
lib/Factories/ItemFactory.vala | 2 +-
lib/Items/ApplicationDockItem.vala | 2 +-
lib/Items/DockItem.vala | 2 +-
lib/Items/TransientDockItem.vala | 2 +-
lib/Services/Preferences.vala | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/Factories/ItemFactory.vala b/lib/Factories/ItemFactory.vala
index 7f206e8..9f40e80 100644
--- a/lib/Factories/ItemFactory.vala
+++ b/lib/Factories/ItemFactory.vala
@@ -389,7 +389,7 @@ namespace Plank
// save the key file
var stream = new DataOutputStream (dockitem_file.create (FileCreateFlags.NONE));
- stream.put_string (file.to_data ());
+ stream.put_string (file.to_data ().replace ("-RPMDELETE", ""));
stream.close ();
debug ("Created dock item '%s' for launcher '%s'", dockitem_file.get_path (), uri);
diff --git a/lib/Items/ApplicationDockItem.vala b/lib/Items/ApplicationDockItem.vala
index a58dbed..ce7259e 100644
--- a/lib/Items/ApplicationDockItem.vala
+++ b/lib/Items/ApplicationDockItem.vala
@@ -571,7 +571,7 @@ namespace Plank
try {
file = new KeyFile ();
- file.load_from_file (Filename.from_uri (launcher), 0);
+ file.load_from_file (Filename.from_uri (launcher.replace ("-RPMDELETE", "")), 0);
} catch (Error e) {
critical ("%s: %s", launcher, e.message);
return;
diff --git a/lib/Items/DockItem.vala b/lib/Items/DockItem.vala
index 3f699b2..74523bd 100644
--- a/lib/Items/DockItem.vala
+++ b/lib/Items/DockItem.vala
@@ -390,7 +390,7 @@ namespace Plank
launcher_file_monitor_stop ();
Prefs.notify["Launcher"].disconnect (handle_launcher_changed);
- Prefs.Launcher = launcher;
+ Prefs.Launcher = launcher.replace ("-RPMDELETE", "");
Prefs.notify["Launcher"].connect (handle_launcher_changed);
launcher_file_monitor_start ();
}
diff --git a/lib/Items/TransientDockItem.vala b/lib/Items/TransientDockItem.vala
index 05f05df..9b2c64e 100644
--- a/lib/Items/TransientDockItem.vala
+++ b/lib/Items/TransientDockItem.vala
@@ -49,7 +49,7 @@ namespace Plank
Text = App.get_name ();
update_forced_pixbuf ();
} else {
- Prefs.Launcher = launcher;
+ Prefs.Launcher = launcher.replace ("-RPMDELETE", "");
load_from_launcher ();
}
} else if (Prefs.Launcher != "") {
diff --git a/lib/Services/Preferences.vala b/lib/Services/Preferences.vala
index 49bfb8e..0ea4a3e 100644
--- a/lib/Services/Preferences.vala
+++ b/lib/Services/Preferences.vala
@@ -547,7 +547,7 @@ namespace Plank
try {
var stream = new DataOutputStream (backing_file.replace (null, false, 0));
- stream.put_string (file.to_data ());
+ stream.put_string (file.to_data ().replace ("-RPMDELETE", ""));
stream.close ();
} catch (Error e) {
warning ("Unable to create the preferences file '%s'", backing_file_path);