Blame SOURCES/0002-ItemEditor-Make-sure-that-we-have-a-valid-Exec-line.patch

5b2f0d
From 666d843940b9020c3ffb94e29b306ddcbc566ddf Mon Sep 17 00:00:00 2001
5b2f0d
From: "Jasper St. Pierre" <jstpierre@mecheye.net>
5b2f0d
Date: Thu, 12 Dec 2013 13:47:01 -0500
5b2f0d
Subject: [PATCH 2/2] ItemEditor: Make sure that we have a valid Exec line
5b2f0d
5b2f0d
Otherwise, gnome-menus / gio will ignore it.
5b2f0d
---
5b2f0d
 Alacarte/ItemEditor.py | 2 +-
5b2f0d
 1 file changed, 1 insertion(+), 1 deletion(-)
5b2f0d
5b2f0d
diff --git a/Alacarte/ItemEditor.py b/Alacarte/ItemEditor.py
5b2f0d
index c6b9fba..3b48324 100644
5b2f0d
--- a/Alacarte/ItemEditor.py
5b2f0d
+++ b/Alacarte/ItemEditor.py
5b2f0d
@@ -182,7 +182,7 @@ class LauncherEditor(ItemEditor):
5b2f0d
     def resync_validity(self, *args):
5b2f0d
         name_text = self.builder.get_object('name-entry').get_text()
5b2f0d
         exec_text = self.builder.get_object('exec-entry').get_text()
5b2f0d
-        valid = (name_text != "" and exec_text != "")
5b2f0d
+        valid = (name_text != "" and GLib.find_program_in_path(exec_text) is not None)
5b2f0d
         self.builder.get_object('ok').set_sensitive(valid)
5b2f0d
 
5b2f0d
     def load(self):
5b2f0d
-- 
5b2f0d
1.9.0
5b2f0d