LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-05-2020, 01:37 PM   #16
portaro
Member
 
Registered: Mar 2015
Location: Portugal
Distribution: Ubuntu
Posts: 38

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by pan64 View Post
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.

Last edited by portaro; 01-05-2020 at 01:39 PM.
 
Old 01-05-2020, 02:41 PM   #17
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 5,163
Blog Entries: 3

Rep: Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562
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.
 
Old 01-05-2020, 03:14 PM   #18
portaro
Member
 
Registered: Mar 2015
Location: Portugal
Distribution: Ubuntu
Posts: 38

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-05-2020, 06:49 PM   #19
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,547

Rep: Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595Reputation: 3595
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?
 
Old 01-06-2020, 02:49 PM   #20
portaro
Member
 
Registered: Mar 2015
Location: Portugal
Distribution: Ubuntu
Posts: 38

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell script with Menu and sub menu and in sub menu execute another shell script SHWE Linux - Newbie 9 11-03-2018 06:19 PM
[SOLVED] firefox launcher doesn't show icon on panel bar of slackware but launcher still there mshlinux Linux - Newbie 6 04-24-2013 10:56 PM
cURL: Server has many IPs, how would I make a cURL script use those IPs to send data? guest Programming 0 04-11-2009 11:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration