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.

Okay this Question is basically directed for using GRIVE the linux client for Google Drive

Details on how to do it are Here.

The thing is that,evrytime i want the folder to sync,I have to navigate to the google drive folder and then execute the grive commnd.

I want to make it simple..I want to make a launcher(I know how to make a *.desktop file). But in a .desktop file you always give path to executable file(generally .sh).

Here,there is no script in the Grive folder.The app is as usual in /usr/bin/grive

Now how do I make the launcher to first navigate to the grive folder and then execut the grive command..

Thanx :)

share|improve this question
    
@virpara..Plz have a look at this..I belive you have the solution.. ;) thanx.! –  Nirmik May 30 '12 at 22:00
    
@virpara..Got the answer.. :p izx help me.. ;) –  Nirmik May 30 '12 at 22:06

1 Answer 1

up vote 1 down vote accepted

In the .desktop file, set

Exec=sh -c "cd /path/to/directory/to/sync && grive"

and set Terminal=true

share|improve this answer
    
Not working...It says Exec=sh no such file or directory –  Nirmik May 30 '12 at 22:03
    
oops...sorry...it worked...my rong...i cpied the Exe= along with the other thing and added it afte Exec= again.. :p...sorry..n thanx..!! ;) –  Nirmik May 30 '12 at 22:05
    
yup...will be allowed to do it in 2min ;P –  Nirmik May 30 '12 at 22:08

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.