Score:0

In Ubuntu 22.04, how to make a taskbar shortcut (with a certain icon) that runs a specific command when clicked?

in flag

In Ubuntu 22.04, how can I make a taskbar shortcut that uses /usr/share/icons/hicolor/256x256/apps/firefox.png as an icon and runs firefox --private-window when clicked?

Score:0
in flag
  1. Create a file at ~/.local/share/applications/firefox-private.desktop.
  2. Paste these lines into the file, and save it.
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Firefox Private
Exec=firefox --private-window
Icon=/usr/share/icons/hicolor/256x256/apps/firefox.png
Type=Application
StartupNotify=true
Categories=Network;WebBrowser;
  1. Make the file executable: chmod +x ~/.local/share/applications/firefox-private.desktop
  2. You might need to log out and back in.
  3. Search for "Firefox Private" in Activities. To open the Activities search, you can either click Activities in the top left of your screen, or you can press the Windows key on your keyboard.
  4. Right-click your new "Firefox Private" icon that appears in those search results.
  5. Choose "Add to Favorites".
  6. (You'll then see the icon in your taskbar.)
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.