Score:1

Cant make a gui icon to start a terminal command

cn flag

I want to make a link on my desktop that just executes a simple Linux command. When I search the internet all I find are ways to start a GUI interface from within a shell.

Is there a tool to make such a link?

us flag
Search for how to create a .desktop file.
pLumo avatar
in flag
Does this answer your question? [How can I create launchers on my desktop?](https://askubuntu.com/questions/64222/how-can-i-create-launchers-on-my-desktop)
Score:1
td flag

put this in a file and fill it out

#!/usr/bin/env xdg-open 
[Desktop Entry]
Exec=comand_to_run
Icon=/path/to/icon
Name=name
Type=Application
Score:0
cn flag

In standard Ubuntu, such graphical tool is not available. However, you can install and use Alacarte to edit and create new items in the application overview without the need to create or edit the corresponding .desktop files yourself. Search for "alacarte" or "main menu" in the activities overview to find and launch the tool.

That tool will create the launcher in your .local/share/applications menu.

  • Copy the corresponding file over to your desktop to have it on the desktop.

or

  • Move it over to the desktop to have it removed from the application overview.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.