Score:0

xdg-open will not run inside .desktop file when added after a prior command

us flag

I have a up.desktop icon that I'm using to start my app. But the second command on the Exec line is not running. Everywhere I look, I find that I can use "&&" or ";" to do multiple commands on this line but it ain't workin'. Only the first command will run. If I run xdg-open http://localhost:9001 from the terminal it works fine but if I try to add it after the "&&" it will not. Why?

How can I run both commands from this one Exec line?

[Desktop Entry]
Version=1.0
Type=Application
Name=Start Penpot
Icon=/home/unclefonso/penpot/icon.png
Exec=/usr/bin/gnome-terminal --working-directory=/home/unclefonso/penpot -- sh -c 'docker-compose -p penpot -f docker-compose.yaml up -d && xdg-open http://localhost:9001'
Categories=Application;
I sit in a Tesla and translated this thread with Ai:

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.