Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Search for packages with whisker menu

Just as the name says, here is where you can post tips and tricks to share with other users of MEPIS.
Message
Author
spidermouse
Forum Novice
Forum  Novice
Posts: 27
Joined: Sat Mar 17, 2018 10:19 pm

Search for packages with whisker menu

#1 Post by spidermouse » Tue May 15, 2018 6:25 pm

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: 2023
Joined: Fri Dec 12, 2008 10:31 am

Re: Search for packages with whisker menu

#2 Post by Richard » Tue May 15, 2018 6:44 pm

Umm. I get an Error: Failed to execute child. on MX-17.1_x64
MX171 on Lenovo T430-2017: i5-3320M, 8 GBRAM, 4.15.0-1-amd64, intel_pstate, 119GB SSD
MX171 on AA1(ZG5) & EeePC-1005ha: Dual Core N270, 1 GBRAM, 4.15.0-1-686-pae, 150GB HDD
DC9, LibO61, Dbox, PM, FF, mPDFed, CherryT, Vbox. __ Linux Counter #208633

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 16160
Joined: Fri Dec 15, 2006 8:07 pm

Re: Search for packages with whisker menu

#3 Post by Stevo » Tue May 15, 2018 7:09 pm

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: 2023
Joined: Fri Dec 12, 2008 10:31 am

Re: Search for packages with whisker menu

#4 Post by Richard » Tue May 15, 2018 7:41 pm

Ahh, no. Only yad.
I'll get it.
MX171 on Lenovo T430-2017: i5-3320M, 8 GBRAM, 4.15.0-1-amd64, intel_pstate, 119GB SSD
MX171 on AA1(ZG5) & EeePC-1005ha: Dual Core N270, 1 GBRAM, 4.15.0-1-686-pae, 150GB HDD
DC9, LibO61, Dbox, PM, FF, mPDFed, CherryT, Vbox. __ Linux Counter #208633

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

Re: Search for packages with whisker menu

#5 Post by Richard » Tue May 15, 2018 7:53 pm

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.
MX171 on Lenovo T430-2017: i5-3320M, 8 GBRAM, 4.15.0-1-amd64, intel_pstate, 119GB SSD
MX171 on AA1(ZG5) & EeePC-1005ha: Dual Core N270, 1 GBRAM, 4.15.0-1-686-pae, 150GB HDD
DC9, LibO61, Dbox, PM, FF, mPDFed, CherryT, Vbox. __ Linux Counter #208633

User avatar
rich
Forum Regular
Forum Regular
Posts: 296
Joined: Sat Mar 31, 2018 6:39 pm

Re: Search for packages with whisker menu

#6 Post by rich » 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!
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:
MX 17.1 Dell Inspiron N5110

spidermouse
Forum Novice
Forum  Novice
Posts: 27
Joined: Sat Mar 17, 2018 10:19 pm

Re: Search for packages with whisker menu

#7 Post by spidermouse » Tue May 15, 2018 10:08 pm

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"

spidermouse
Forum Novice
Forum  Novice
Posts: 27
Joined: Sat Mar 17, 2018 10:19 pm

Re: Search for packages with whisker menu

#8 Post by spidermouse » Tue May 15, 2018 10:14 pm

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: 2023
Joined: Fri Dec 12, 2008 10:31 am

Re: Search for packages with whisker menu

#9 Post by Richard » Tue May 15, 2018 11:20 pm

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.
MX171 on Lenovo T430-2017: i5-3320M, 8 GBRAM, 4.15.0-1-amd64, intel_pstate, 119GB SSD
MX171 on AA1(ZG5) & EeePC-1005ha: Dual Core N270, 1 GBRAM, 4.15.0-1-686-pae, 150GB HDD
DC9, LibO61, Dbox, PM, FF, mPDFed, CherryT, Vbox. __ Linux Counter #208633

User avatar
rich
Forum Regular
Forum Regular
Posts: 296
Joined: Sat Mar 31, 2018 6:39 pm

Re: Search for packages with whisker menu

#10 Post by rich » Tue May 15, 2018 11:30 pm

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.
MX 17.1 Dell Inspiron N5110

Post Reply

Return to “Tips&Tricks”