Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-01-26 10:26:24

D.dave
Member
Registered: 2019-12-06
Posts: 58

I made a new launcher in Whisker Menu, but doesn't appear

I made a new launcher (obviously I clicked on save)

1.png



But in Whisker Menu doesn't appear:

2.png

I tried to restart Whisker Menu: kill -SIGHUP $(ps -ef | grep whisker| grep -v grep | awk '{print $2}'), but without success.
What to do?

EDIT: I did a logout/relogin and still is not present.

Last edited by D.dave (2024-01-26 10:31:58)

Offline

#2 2024-01-26 11:05:51

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,034

Re: I made a new launcher in Whisker Menu, but doesn't appear

What version of menulibre is that and can we see the contents of the /home/dave/.local/share/applications/menulibre-network-scanner.desktop file?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2024-01-26 11:15:05

D.dave
Member
Registered: 2019-12-06
Posts: 58

Re: I made a new launcher in Whisker Menu, but doesn't appear

menulibre 2.2.3-5; content of /home/dave/.local/share/applications/menulibre-network-scanner.desktop:

[Desktop Entry]
Version=1.1
Type=Application
Name=Network Scanner
Comment=Perform an Arp scan on the current network
Icon=/home/dave/Pictures/icons/netscan.png
Exec=/home/dave/.local/bin/arpscanquick
Terminal=true
Actions=
Categories=System;X-XFCE;X-Xfce-Topleve

However, I find that as I launch this desktop file, as expected the executable is executed inside a terminal window, but as it finish to scan, the terminal window will close. No problem if I execute /home/dave/.local/bin/arpscanquick from a terminal window: doesn't autoclose.

Also the content of the script:

#!/bin/bash

activewlan=$(nmcli con show --active | awk '{print $NF}' | tail -2 | head -1)
arp-scan --interface=$activewlan -l -r 6 -g

Any idea also on this?

Thank you a lot.

EDIT: I did a reboot, and the Desktop file now is present; I changed the Exec line to

Exec=xfce4-terminal -H -e "bash -c '/home/dave/.local/bin/arpscanquick'"

and now the terminal remain opened.

However, ToZ, any idea about the fact that I had to reboot? I made other desktop files, using menulibre, in the past days, and these desktop files were instantly present in Whisker Menu.

Last edited by D.dave (2024-01-26 11:27:00)

Offline

#4 2024-01-26 14:50:58

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,034

Re: I made a new launcher in Whisker Menu, but doesn't appear

D.dave wrote:

However, ToZ, any idea about the fact that I had to reboot? I made other desktop files, using menulibre, in the past days, and these desktop files were instantly present in Whisker Menu.

No idea - it should have been re-read immediately. Anything in ~/.xsession-errors.old about it (assuming you haven't rebooted more than once)?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Board footer

Powered by FluxBB