The msgraph package contains a shared library for accessing the Microsoft Graph API. This is useful for adding support for OneDrive into gvfs, which is becoming more important for students and remote workers.
Install msgraph by running the following commands:
mkdir build && cd build && meson setup --prefix=/usr --buildtype=release -D tests=false .. && ninja
This package does come with a test suite, but it requires the external
program
uhttpmock.
If you want to run the tests, install uhttpmock and remove the
-D tests=false parameter, and then run
ninja test.
Now, as the root user:
ninja install
--buildtype=release: Specify a buildtype
suitable for stable releases of the package, as the default may
produce unoptimized binaries.
To configure msgraph to allow access to Microsoft OneDrive with packages
that use gvfs, you should rebuild gvfs in BLFS without the
-D onedrive=false option. After doing this, you
should go to GNOME Control Center/GNOME Settings and link your
Microsoft account through the Online Accounts section, and you should
be able to mount your OneDrive file storage account in Nautilus.