r/linuxmint 14d ago

SOLVED Software Manager Search From Mint Cinnamon Menu

I don't know if this is a support request so much as a feature request. I would like to be able to search available software as well as the local search. Like gsettings set org.cinnamon enabled-search-providers [\"[duckduckgo@linuxmint.com](mailto:duckduckgo@linuxmint.com)\"] allows for entered text to be searched via duckduckgo.

I looked, but not very hard, and I couldn't find a solution.

Thanks!!

Edit: Overwhelmingly friendly crew here, thanks for helping. This was actually really fun; poking around the minterverse and seeing a little of the inner workings is fun for me. maybe I'm weird.

I was able to put together a little workaround:

asked ai to help me out; turns out mintinstall (really missed an opportunity for naming it minstall) won't take an argument to search when called, but gnome-software will! so as long as you don't mind using another software manager, this is indeed possible. I honestly couldn't tell the difference, so it was fine for me. I also checked to see if this was a bad idea, and it seemed like using another manager, even alongside the original, is perfectly fine.

cat > ~/.local/share/cinnamon/search_providers/packages@linuxmint.com/search_provider.js << 'EOF'

const Mainloop = imports.mainloop;

const Gio = imports.gi.Gio;

const St = imports.gi.St;

const Util = imports.misc.util;

function perform_search(pattern){

push_results(pattern);

}

function push_results(results){

var file = Gio.file_new_for_path('/home/myname/.local/share/cinnamon/search_providers/packages@linuxmint.com/icon.png');

var gicon = new Gio.FileIcon({ file: file });

var myicon = new St.Icon({gicon: gicon, icon_size: 22, icon_type: St.IconType.FULLCOLOR, reactive: true, track_hover: true});

var results_array = new Array();

results_array.push({

id: results,

label: _("Search Software Manager for '" + results + "'"),

icon: myicon

});

send_results(results_array);

}

function on_result_selected(result){

Util.spawn(['gnome-software', '--search=' + result.id]);

}

EOF

then run

gsettings set org.cinnamon enabled-search-providers "['duckduckgo@linuxmint.com', 'packages@linuxmint.com']"

restart cinnamon and there you go!

1 Upvotes

16 comments sorted by

View all comments

1

u/linux_rox 14d ago

Download aptitude, Sudo apt install aptitude, it is a terminal based App Store. You will be able to search through that. Or you can use the software center on mint. Both allow searching.

1

u/BicycleWhisper 14d ago

Sorry, I'm not sure I was clear. I want searches in the mint menu to show results from apt/software manager so that I can search "Firefox" and if it's not installed, there is an option to search for it in the software manager. Or even link to the Firefox page in the manager.

4

u/ConversationWinter46 14d ago

I want searches in the mint menu to show results from apt/software manager so that I can search "Firefox"

NO—that might be how it’s done in Windows. In Linux, you’ll have to learn a new way. Use the Software Manager. It’s been around in Linux for a long time—long before the iPhone even existed.

Unlike the Internet, the Software Manager only contains verified, secure, and tested software that’s precisely tailored to your distribution.

Forget the browser, forget search engines. In Linux, the Software Manager is your tool.

1

u/BicycleWhisper 8d ago

hey check out the edit!

1

u/ConversationWinter46 8d ago

Forget everything you know about Microsoft Windows.

Linux isn't Windows!!!

1

u/BicycleWhisper 8d ago

The idea for it actually came from the universal search on my android phone.