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
portaro
Posts: 2
Joined: Thu Jan 04, 2018 12:03 am

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

Postby portaro » Sun Jan 19, 2020 3:02 pm

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/questions/showthread.php?p=6074945#post6074945
https://ubuntuforums.org/showthread.php?t=2434551&p=13922693#post13922693
https://gnulinuxvagos.es/topic/9846-comando-curl-funcionando-via-terminal-pero-no-via-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.

Return to “LXTerminal”

Who is online

Users browsing this forum: No registered users and 1 guest