Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm making a launcher that when clicked will open up a chromium window with tabs for Gmail, Google Docs, and Google Calendar, but I'd also like to drag and drop documents into the launcher icon and have them automatically uploaded to Google Docs.

How can I differentiate an Exec for clicking and an Exec for drag and drop?

share|improve this question

Whilst not quite the launcher you would like to make - WebUp8 have recently blogged about the following GoogleDocs launcher that does a upload when you drag-and-drop.

enter image description here

Hope this gives you a few ideas for your final solution.

share|improve this answer
That's actually the base of what I'm trying to make... I have the .desktop file from that launcher, but I want to know if I can add a click-only Exec command on top of the drag and drop command – Leron Jun 28 '11 at 6:40
up vote 0 down vote accepted

Figured it out! The Exec command in the Gdocs.Desktop was I opened that up and the penultimate line of code is what command should be executed if no file is present.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.