Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

2 Answers 2

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 DocsHelper.sh 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

 
discard

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.