Search engines: Fix community links when Internet search is disabled
This commit is contained in:
parent
f37700f5a0
commit
d1ee760670
@ -1105,14 +1105,12 @@ class pluginclass( object ):
|
||||
return (x, y, False)
|
||||
|
||||
def search_ddg(self, widget):
|
||||
if self.enableInternetSearch:
|
||||
text = self.searchEntry.get_text()
|
||||
text = text.replace(" ", "+")
|
||||
os.system("xdg-open \"https://duckduckgo.com/?q=%s&t=lm&ia=web\" &" % text)
|
||||
self.mintMenuWin.hide()
|
||||
|
||||
def search_wikipedia(self, widget):
|
||||
if self.enableInternetSearch:
|
||||
text = self.searchEntry.get_text()
|
||||
text = text.replace(" ", "+")
|
||||
os.system("xdg-open \"http://en.wikipedia.org/wiki/Special:Search?search=" + text + "\" &")
|
||||
@ -1124,35 +1122,30 @@ class pluginclass( object ):
|
||||
self.mintMenuWin.hide()
|
||||
|
||||
def search_mint_tutorials(self, widget):
|
||||
if self.enableInternetSearch:
|
||||
text = self.searchEntry.get_text()
|
||||
text = text.replace(" ", "%20")
|
||||
os.system("xdg-open \"http://community.linuxmint.com/index.php/tutorial/search/0/" + text + "\" &")
|
||||
self.mintMenuWin.hide()
|
||||
|
||||
def search_mint_ideas(self, widget):
|
||||
if self.enableInternetSearch:
|
||||
text = self.searchEntry.get_text()
|
||||
text = text.replace(" ", "%20")
|
||||
os.system("xdg-open \"http://community.linuxmint.com/index.php/idea/search/0/" + text + "\" &")
|
||||
self.mintMenuWin.hide()
|
||||
|
||||
def search_mint_users(self, widget):
|
||||
if self.enableInternetSearch:
|
||||
text = self.searchEntry.get_text()
|
||||
text = text.replace(" ", "%20")
|
||||
os.system("xdg-open \"http://community.linuxmint.com/index.php/user/search/0/" + text + "\" &")
|
||||
self.mintMenuWin.hide()
|
||||
|
||||
def search_mint_hardware(self, widget):
|
||||
if self.enableInternetSearch:
|
||||
text = self.searchEntry.get_text()
|
||||
text = text.replace(" ", "%20")
|
||||
os.system("xdg-open \"http://community.linuxmint.com/index.php/hardware/search/0/" + text + "\" &")
|
||||
self.mintMenuWin.hide()
|
||||
|
||||
def search_mint_software(self, widget):
|
||||
if self.enableInternetSearch:
|
||||
text = self.searchEntry.get_text()
|
||||
text = text.replace(" ", "%20")
|
||||
os.system("xdg-open \"http://community.linuxmint.com/index.php/software/search/0/" + text + "\" &")
|
||||
|
Loading…
Reference in New Issue
Block a user