LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Shell Script with curl works on terminal but not as menu launcher. (https://www.linuxquestions.org/questions/linux-general-1/shell-script-with-curl-works-on-terminal-but-not-as-menu-launcher-4175667112/)

portaro 01-05-2020 01:37 PM

Quote:

Originally Posted by pan64 (Post 6074962)
yes, what you entered is wrong. You need to modify it. That's why I told you to test it.

Exec=lxterminal -e "bash -c '/home/joao/.config/tempo.sh' "

This still do nothing when I specify on launcher file.

Thanks for help.

Turbocapitalist 01-05-2020 02:41 PM

There should be no quotes around what you are runnning, the items after the -e are interpreted verbatim,

Code:

Exec=lxterminal -e /home/joao/.config/tempo.sh
unless you also wrap it in a shell

Code:

Exec=lxterminal -e sh -c '/home/joao/.config/tempo.sh'
but I would go for it without the shell.

portaro 01-05-2020 03:14 PM

In the launcher with or without quotes no work.

If I put the lxterminal -e /home/joao/.config/tempo.sh in terminal this is the result →

$ lxterminal -e /home/joao/.config/tempo.sh
/run/user/1000/.lxterminal-socket-:0

Opens new window with new terminal - lxterminal - and code work.

michaelk 01-05-2020 06:49 PM

Is the desktop entry located in the ~/Desktop directory?

Does its properties allow launching? What do you see when you right click on the icon?

portaro 01-06-2020 02:49 PM

Quote:

Originally Posted by michaelk (Post 6075040)
Is the desktop entry located in the ~/Desktop directory?

Does its properties allow launching? What do you see when you right click on the icon?

I use Lxmenu to add launchers to the menu no need any ./desktop directory →

http://lxmed.sourceforge.net/

I already use other launchers to add in the meu and works well example →

Code:

#!/bin/bash
compton -c -r 16 -l -24 -t -12 -G -b

I click on te launcer on the menu and compton launch with the options that I write.

If I click on the launcher with right click I have options like → launch, launch in terminal, Open with etc...


All times are GMT -5. The time now is 02:32 AM.