toolbar button to launch bash script

Double Commander support forum.
Message
Author
aadm
Posts: 4
Joined: Tue Feb 12, 2019 11:57 am

toolbar button to launch bash script

#1 Post by aadm »

I'm unable to create a toolbar button that would launch a bash script that I use to sync my computer with google drive via rclone.
Assuming my script is named sinc_gdrive.sh and is located in folder /home/user/bin, I have tried all these different ways but none is successful (leaving aside icon and tooltip):

Command: x-terminal-emulator
Parameters: -e sh -c '-/home/user/bin/sinc_gdrive.sh; echo -n Press ENTER to exit... ; read a'
Start path: /home/user

Command: x-terminal-emulator -e -/home/user/bin/sinc_gdrive.sh
Parameters:
Start path: /home/user/bin

Command: /home/user/bin/sinc_gdrive.sh
Parameters:
Start path: /home/user/bin

Please help!

Skif_off
Posts: 3156
Joined: Sat Feb 28, 2015 12:25 am

toolbar button to launch bash script

#2 Post by Skif_off »

How it works? Open some directory > Run script? Then try to clean field Start path. Also see %t1.

Something like

Code: Select all

Command: ~/bin/sinc_gdrive.sh
Parameters: %t1
Start path:

aadm
Posts: 4
Joined: Tue Feb 12, 2019 11:57 am

toolbar button to launch bash script

#3 Post by aadm »

Skif_off wrote: Sat Mar 02, 2019 4:54 am How it works? Open some directory > Run script? Then try to clean field Start path. Also see %t1.
It works! Only needed to add %t1 to parameters as you said! Fantastic, thanks a lot.

Post Reply