Search for packages with whisker menu

Here is where you can post tips and tricks to share with other users of MX. Do not ask for help in this Forum.
Message
Author
User avatar
spidermouse
Posts: 34
Joined: Sat Mar 17, 2018 10:19 pm

Search for packages with whisker menu

#1 Post by spidermouse »

Interesting trick with the Whisker Menu:
If the search is set as the second option in this post:
https://askubuntu.com/questions/1035247 ... 76#1035276
The searching can be done with "!s pkgname".
Open Whisker and type "!s synaptic" (without the quotes) then press Return and zenity dialog pops up displaying a list.

User avatar
Richard
Posts: 1577
Joined: Fri Dec 12, 2008 10:31 am

Re: Search for packages with whisker menu

#2 Post by Richard »

Umm. I get an Error: Failed to execute child. on MX-17.1_x64
Thinkpad T430 & Dell Latitude E7450, both with MX-21.3.1
kernal 5.10.0-26-amd64 x86_64; Xfce-4.18.0; 8 GB RAM
Intel Core i5-3380M, Graphics, Audio, Video; & SSDs.

User avatar
Stevo
Developer
Posts: 12832
Joined: Fri Dec 15, 2006 8:07 pm

Re: Search for packages with whisker menu

#3 Post by Stevo »

Richard wrote: Tue May 15, 2018 6:44 pm Umm. I get an Error: Failed to execute child. on MX-17.1_x64
Is zenity installed?

User avatar
Richard
Posts: 1577
Joined: Fri Dec 12, 2008 10:31 am

Re: Search for packages with whisker menu

#4 Post by Richard »

Ahh, no. Only yad.
I'll get it.
Thinkpad T430 & Dell Latitude E7450, both with MX-21.3.1
kernal 5.10.0-26-amd64 x86_64; Xfce-4.18.0; 8 GB RAM
Intel Core i5-3380M, Graphics, Audio, Video; & SSDs.

User avatar
Richard
Posts: 1577
Joined: Fri Dec 12, 2008 10:31 am

Re: Search for packages with whisker menu

#5 Post by Richard »

with zenity-3.22.0-1+b1, I get the same error.
Error-!s synaptic.png
Must be something else that the stock MX-17.1 is missing?
You do not have the required permissions to view the files attached to this post.
Thinkpad T430 & Dell Latitude E7450, both with MX-21.3.1
kernal 5.10.0-26-amd64 x86_64; Xfce-4.18.0; 8 GB RAM
Intel Core i5-3380M, Graphics, Audio, Video; & SSDs.

User avatar
rich
Posts: 180
Joined: Sat Mar 31, 2018 6:39 pm

Re: Search for packages with whisker menu

#6 Post by rich »

spidermouse wrote: Tue May 15, 2018 6:25 pm Interesting trick with the Whisker Menu...
Nice! Wonder what's the way to link it up to MXPI or synaptic or something to get an option to install from there... similar to newer gnome shell features... cool trick!
Richard wrote: Tue May 15, 2018 7:53 pm Must be something else that the stock MX-17.1 is missing?
I was able to get it going on stock mx 17.1 with just installing zenity and dctrl-tools per the Ask Ubuntu post... maybe double check the entry in whisker menu settings? That error comes up if the script path is incorrect or possibly if the script is not executable. I know it took me like three tries to get it in right :spinning:

User avatar
spidermouse
Posts: 34
Joined: Sat Mar 17, 2018 10:19 pm

Re: Search for packages with whisker menu

#7 Post by spidermouse »

Richard maybe it will work with yad

Don't forget to install dctrl-tools

Code: Select all

#!/bin/bash

PKG="$@"

PKGNAME="$(grep-available -sPackage -sVersion -sDescription . /var/lib/apt/lists/*_Packages |
           grep -A 2 -E "^Package\: .*${PKG}" |
           awk '{$1="";print $0}' |
           yad --list --width=900 --height=700 --column="Package" --column="Version avail" --print-column=1 \
                  --column="Description" --column="" --hide-column=4 --title="package info" --text="pkg info" --center)"

PKGNAME="${PKGNAME//|/''}"

[[ ! -z ${PKGNAME} ]] && apt-cache show ${PKGNAME} | yad --text-info --title="apt-cache show $PKGNAME" --width=900 --height=700 --center
Or with a different pattern:

Name: Enter package name(s) to searh for
Pattern: +s
Command: /bin/bash -c "/home/richard/Desktop/pkginfo %s"

User avatar
spidermouse
Posts: 34
Joined: Sat Mar 17, 2018 10:19 pm

Re: Search for packages with whisker menu

#8 Post by spidermouse »

rich wrote: Tue May 15, 2018 9:59 pm
spidermouse wrote: Tue May 15, 2018 6:25 pm Interesting trick with the Whisker Menu...
Nice! Wonder what's the way to link it up to MXPI or synaptic or something to get an option to install from there... similar to newer gnome shell features... cool trick!
No idea how to link it to synaptic or MXPI. I've tried to to use the xdotool to type the package name and enter into the synaptic's search bar but that didn't work. :frown:

User avatar
Richard
Posts: 1577
Joined: Fri Dec 12, 2008 10:31 am

Re: Search for packages with whisker menu

#9 Post by Richard »

I checked, and I already had dctrl-tools-2.24-2+b1 and yad-0.38.2-1 installed.
Then installed zenity-3.22.0-1+b1,
but when I try "!s" in whisker menu,
I get the same error as in the image above?
I'm running xfce4-whiskermenu-plugin-2.1.5-0mx17, just in case there's a newer one.
Thinkpad T430 & Dell Latitude E7450, both with MX-21.3.1
kernal 5.10.0-26-amd64 x86_64; Xfce-4.18.0; 8 GB RAM
Intel Core i5-3380M, Graphics, Audio, Video; & SSDs.

User avatar
rich
Posts: 180
Joined: Sat Mar 31, 2018 6:39 pm

Re: Search for packages with whisker menu

#10 Post by rich »

The error message means whisker menu doesn't know your command. What that probably means is the Search Actions command for !s is not pointing to the script, or something like that. I would just double check your name, pattern, and command entries.

Post Reply

Return to “Tips & Tricks by users”