Ubuntu – Execute “complex” command in .desktop file (Unity Quicklist)

launcherunity

I'm trying to create an Twitter quicklist desktop file, but I can figured how to resolve one thing.

To compose an message at Twitter, I made the following command:
Exec=xdg-open 'https://twitter.com/#!/' && sleep 3 && xdotool key n

(execute)+(open browser)+(Twitter main URL)+ Some seconds to open + Keyboard shorcut to compose.

If I use in terminal, works fine. But in the .desktop file (to make Unity Quicklist) it just doesn't work. Any idea how to fix it?

Best Answer

I would use

Exec=sh -c "xdg-open 'https://twitter.com/#!/' && sleep 3 && xdotool key n"
Related Question