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

1
gio mount --list

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

1
2
Mount(0): myfiles.fastmail.com -> davs://myfiles.fastmail.com/
  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.

1
gio mount davs://myfiles.fastmail.com/

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

2022-03-18