4

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?

1 Answer 1

8

I would use

Exec=sh -c "xdg-open 'https://twitter.com/#!/' && sleep 3 && xdotool key n"
2
  • Work just perfect. Can you just explain what sh em -c mean? (I'm not an advanced Linux programer, hehe)
    – euDennis
    Commented Jan 28, 2012 at 20:06
  • @euDennis: you are using &&, that is a shell construct, so you have to use a shell, i.e. sh, or also bash
    – enzotib
    Commented Jan 28, 2012 at 20:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .