There is this AUR package gcsf which works great. However I don't want to remount the drive manually after every reboot and would like this to happen automatically. Moreover when I do this manually the script must remain running in the terminal window and I can't kill it or it will terminate the program. So I would like this script to run in the background without any GUI attachment or visibly open terminal window.
Added a file "~/.config/autostart-scripts/googledrive"
gcsf mount ~/googledrive -s deemon
gave it +x with chmod
it does show up in Settings => Startup and Shutdown => Autostart => under scripts as Enabled and run on startup.
however it doesn't seem to have any effect and the mounting does not happen.
(when I run the script from command line manually, it works perfectly.)
What am I doing wrong?
Or is there a better way (create service for it?) to make the mount happen automatically at login?