Welcome!
Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.2 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 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.
spidermouse
Forum Novice
Forum  Novice
Posts: 29
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: 2606
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
LT: MX18.2: Thinkpad T430: DualCore, Intel i5-3320M, Ivy Bridge, 8GB RAM, 5.0.0-8.1-liquorix-amd64, 119GB SSD 840PRO, Intel Graphics-Audio-Network
NB: MX18.1, antiX17.3: AsusTek EeePC 1005HA: Intel DualCore Atom N270, 1GB RAM, 4.19.0-1-686, 150GB HDD

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 18766
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: 2606
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.
LT: MX18.2: Thinkpad T430: DualCore, Intel i5-3320M, Ivy Bridge, 8GB RAM, 5.0.0-8.1-liquorix-amd64, 119GB SSD 840PRO, Intel Graphics-Audio-Network
NB: MX18.1, antiX17.3: AsusTek EeePC 1005HA: Intel DualCore Atom N270, 1GB RAM, 4.19.0-1-686, 150GB HDD

User avatar
Richard
Posts: 2606
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.
LT: MX18.2: Thinkpad T430: DualCore, Intel i5-3320M, Ivy Bridge, 8GB RAM, 5.0.0-8.1-liquorix-amd64, 119GB SSD 840PRO, Intel Graphics-Audio-Network
NB: MX18.1, antiX17.3: AsusTek EeePC 1005HA: Intel DualCore Atom N270, 1GB RAM, 4.19.0-1-686, 150GB HDD

User avatar
rich
Forum Regular
Forum Regular
Posts: 314
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:
I read a book about Narcissism
And I loved it cuz
It was all about me.

spidermouse
Forum Novice
Forum  Novice
Posts: 29
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: 29
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: 2606
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.
LT: MX18.2: Thinkpad T430: DualCore, Intel i5-3320M, Ivy Bridge, 8GB RAM, 5.0.0-8.1-liquorix-amd64, 119GB SSD 840PRO, Intel Graphics-Audio-Network
NB: MX18.1, antiX17.3: AsusTek EeePC 1005HA: Intel DualCore Atom N270, 1GB RAM, 4.19.0-1-686, 150GB HDD

User avatar
rich
Forum Regular
Forum Regular
Posts: 314
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.
I read a book about Narcissism
And I loved it cuz
It was all about me.

Post Reply

Return to “Tips&Tricks”