From 8f00708252830a311e67a877e994a2baafe23e2b Mon Sep 17 00:00:00 2001 From: wesdawg <5124946+wesdawg@users.noreply.github.com> Date: Mon, 25 Sep 2017 09:54:35 -0400 Subject: [PATCH] Search updates (#185) * Update search URLs to use HTTPS * Update Wikipedia icon --- .../linuxmint/mintMenu/plugins/applications.py | 16 ++++++++-------- .../mintMenu/search_engines/wikipedia.ico | Bin 318 -> 0 bytes .../mintMenu/search_engines/wikipedia.png | Bin 0 -> 443 bytes 3 files changed, 8 insertions(+), 8 deletions(-) delete mode 100644 usr/lib/linuxmint/mintMenu/search_engines/wikipedia.ico create mode 100644 usr/lib/linuxmint/mintMenu/search_engines/wikipedia.png diff --git a/usr/lib/linuxmint/mintMenu/plugins/applications.py b/usr/lib/linuxmint/mintMenu/plugins/applications.py index 5fe4a8f..f4d7485 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/applications.py +++ b/usr/lib/linuxmint/mintMenu/plugins/applications.py @@ -587,7 +587,7 @@ class pluginclass( object ): suggestionButton = SuggestionButton("list-add", self.iconSize, "") suggestionButton.connect("clicked", self.search_wikipedia) suggestionButton.set_text(_("Search Wikipedia for %s") % text) - suggestionButton.set_image("/usr/lib/linuxmint/mintMenu/search_engines/wikipedia.ico") + suggestionButton.set_image("/usr/lib/linuxmint/mintMenu/search_engines/wikipedia.png") self.applicationsBox.add(suggestionButton) self.suggestions.append(suggestionButton) @@ -1017,7 +1017,7 @@ class pluginclass( object ): menuItem = Gtk.ImageMenuItem(_("Search Wikipedia")) img = Gtk.Image() - img.set_from_file('/usr/lib/linuxmint/mintMenu/search_engines/wikipedia.ico') + img.set_from_file('/usr/lib/linuxmint/mintMenu/search_engines/wikipedia.png') menuItem.set_image(img) menuItem.connect("activate", self.search_wikipedia) menu.append(menuItem) @@ -1105,7 +1105,7 @@ class pluginclass( object ): def search_wikipedia(self, widget): text = self.searchEntry.get_text() text = text.replace(" ", "+") - os.system("xdg-open \"http://%s.wikipedia.org/wiki/Special:Search?search=%s\" &" % (self.lang, text)) + os.system("xdg-open \"https://%s.wikipedia.org/wiki/Special:Search?search=%s\" &" % (self.lang, text)) self.mintMenuWin.hide() def search_dictionary(self, widget): @@ -1116,31 +1116,31 @@ class pluginclass( object ): def search_mint_tutorials(self, widget): text = self.searchEntry.get_text() text = text.replace(" ", "%20") - os.system("xdg-open \"http://community.linuxmint.com/index.php/tutorial/search/0/" + text + "\" &") + os.system("xdg-open \"https://community.linuxmint.com/index.php/tutorial/search/0/" + text + "\" &") self.mintMenuWin.hide() def search_mint_ideas(self, widget): text = self.searchEntry.get_text() text = text.replace(" ", "%20") - os.system("xdg-open \"http://community.linuxmint.com/index.php/idea/search/0/" + text + "\" &") + os.system("xdg-open \"https://community.linuxmint.com/index.php/idea/search/0/" + text + "\" &") self.mintMenuWin.hide() def search_mint_users(self, widget): text = self.searchEntry.get_text() text = text.replace(" ", "%20") - os.system("xdg-open \"http://community.linuxmint.com/index.php/user/search/0/" + text + "\" &") + os.system("xdg-open \"https://community.linuxmint.com/index.php/user/search/0/" + text + "\" &") self.mintMenuWin.hide() def search_mint_hardware(self, widget): text = self.searchEntry.get_text() text = text.replace(" ", "%20") - os.system("xdg-open \"http://community.linuxmint.com/index.php/hardware/search/0/" + text + "\" &") + os.system("xdg-open \"https://community.linuxmint.com/index.php/hardware/search/0/" + text + "\" &") self.mintMenuWin.hide() def search_mint_software(self, widget): text = self.searchEntry.get_text() text = text.replace(" ", "%20") - os.system("xdg-open \"http://community.linuxmint.com/index.php/software/search/0/" + text + "\" &") + os.system("xdg-open \"https://community.linuxmint.com/index.php/software/search/0/" + text + "\" &") self.mintMenuWin.hide() def add_to_desktop(self, widget, desktopEntry): diff --git a/usr/lib/linuxmint/mintMenu/search_engines/wikipedia.ico b/usr/lib/linuxmint/mintMenu/search_engines/wikipedia.ico deleted file mode 100644 index 31b0e380926531c268b0642cac2300fc829e46d2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 318 zcmZQzU<5(|0RbS%!l1#(z#zuJz@P!d0zj+)#2|5W0Fna%7A6*kmgW|Q6UR?5c({8o zynOMJAu}tJVdaXI3>q3541fOqVUU!NWSB8y2E&b;HyFYr!WpWns~C3f+R0#JWy8<` z2YnhH`#_v#>yB^`onF>gt^uUwukEdp0Ma#X@ev{&9gS?=-(Rc(DeL~+vA3h+r9>A` whvSQmlNy@~Gx{>Rr+TbRifD;wtm`n}BGnT0#;(nF$DQ3VKm)J>h%d+|0VGXX9smFU diff --git a/usr/lib/linuxmint/mintMenu/search_engines/wikipedia.png b/usr/lib/linuxmint/mintMenu/search_engines/wikipedia.png new file mode 100644 index 0000000000000000000000000000000000000000..440e9f199576844a989d06c435ddc2039c70ed64 GIT binary patch literal 443 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf6SkfJR9T^xl_H+M9WCijSl0AZa z85pY67#JE_7#My5g&JNkFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR+ueoXe|!I#{Xiaj ziKnkC`$JAqekIXe8cu70LWezF978nD@4c|s%ZZVJ^}+gT=5_&<%pEtRS%PNoZCc%U z;gSq5Z(}eEZ&NdeU(;f5PQJkG{0A43#GgBPWW4a7v|zsGmYlQ3a(vJG>yI<>>HNAd z`RHt8)`i+R4_Gd>ecSjnxJ6c!@!ZpWwO&!C8<`)MX5lF!N|bST-U%-*T^u$ w(A3J<#LCD}+rYrez`*}Z>SYuSx%nxXX_dG&*iF2f57fZm>FVdQ&MBb@0PhBw3IG5A literal 0 HcmV?d00001