Shell Script with curl works on terminal but not as menu launcher.
Posted: 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 →
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 →
The script inside on the launcher file is →
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)→
Thanks for any help.
If I directly put this command on terminal he works →
Code: Select all
$ bash -x /home/joao/.config/tempo.sh
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;
Code: Select all
#!/usr/bin/env bash
curl https://wttr.in/chaves
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