Mount Webdav on Ubuntu Startup Like Gnome Does

If you have mounted a webdav file system using the Files gui, you may be wondering how you can automate this or perform the mount automatically at start up.

Gnome provides the gio command as a command line interface for many of the operations that happen through the gnome user interface. If you currently have you webdav fs mounted you can try

gio mount --list

To see a list of mounted filesystems. For instance I see:

Mount(0): -> davs://
  Type: GDaemonMount

In order to mount this from the command line, you can just use the gio mount command with the location from the right hand side of that output.

gio mount davs://

You can add this to your bash profile or create a start up command using this.