Shell Script with curl works on terminal but not as menu launcher.

LXTerminal is the standard terminal emulator of LXDE - http://wiki.lxde.org/en/LXTerminal
Locked
portaro
Posts: 2
Joined: Thu Jan 04, 2018 12:03 am

Shell Script with curl works on terminal but not as menu launcher.

Post by portaro »

Hello friends I write here to try find a curious problem tat I have with a script on my LXDE Lubuntu desktop.

If I directly put this command on terminal he works →

Code: Select all

$ bash -x /home/joao/.config/tempo.sh
But when I try to make this script as launcher and diectly runs on terminal by click on icon menu he dont work simply open the terminal and do nothing →

Code: Select all

[Desktop Entry]
Name=Tempo-Chaves
Exec=bash -c /home/joao/.config/tempo.sh
Comment=
Icon=
NoDisplay=false
Type=Application
Terminal=true
Categories=Utility;
The script inside on the launcher file is →

Code: Select all

#!/usr/bin/env bash
curl  https://wttr.in/chaves
Other users on other forums comment to me that in fact my script work as launcher in their systems like Gnome, but with lxterminal he dont work on my pc.

If you have time please take a look on my questions about it in other forums and see all modifictations that I already do on script, on Exec line of launcher and in the sintax of script code or launcher →

https://www.linuxquestions.org/question ... ost6074945
https://ubuntuforums.org/showthread.php ... st13922693
https://gnulinuxvagos.es/topic/9846-com ... ia-script/

I use lxmenu editor to put the launcher inside menu of LXDE directly → http://lxmed.sourceforge.net/

I have other scripts that work well as menu launcher like a compton launcher (activate)→

Code: Select all

#!/bin/bash
compton -c -r 16 -l -24 -t -12 -G -b
Thanks for any help.
Locked