Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
We often run Terminal and type in commands like: "echo Hello World",
"cat /etc/linuxmint/info", "ping 123.456.7.8".
I want to create desktop XFCE Launchers with one-line commands,,, not using a BASH script.
How-to: Right click on XFCE background and run "Create Launcher".
Enter Name:"OneLiner",
Command: "echo Hello world",
Select "Run in terminal"
click Create.
Click the new launcher to test.
After a short wait, an error message "Failed to run "OneLiner.desktop"
When you run in a terminal, you are also “in” a shell, which provides you with an environment including paths to commands (PATH)
Try using the absolute paths to commands.
Something??? flashes on the desktop.
If I run Terminal and Enter: xfce4-terminal --command="echo 'Hello World'"
Something flashes on the next line.
There must be a default 'execute + exit' parameter somewhere.
Note:
I have found this same problem in three other forums. No solution found. (without using a script file).
What ever happened to DOS ?
works because the terminal stays running so long as the program units is using it. But the echo command stops after it's done its job, and so the terminal closes before you can see it. I tried altering the command to "echo 'Hello' && sleep 5" but that doesn't help. You need a real bash expert here, and that's not me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.