Installing OneDrive on Bazzite
To install OneDrive on Bazzite (Fedora Atomic), there are multiple ways to do it. The first method is GNOME-specific the steps in their wiki:
- From GNOME's Menu, open Settings. Then go to Online Accounts.
- Open Microsoft 365 (not Microsoft).
- To setup a custom client ID, you must register a new application with Microsoft and enable the appropriate permissions.
- Sign up and/or login to Microsoft Entra (entra.microsoft.com).
- In the sidebar select "Identity" -> "Applications" -> "App registrations"
- In the tab bar select "New registration"
- Choose a name for the application and select "Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)". Leave the "Redirect URI" empty and click "Register"
- Copy the "Application (client) ID" and then click "Add a Redirect URI"
- Select "Add a platform" and then "Mobile and desktop applications"
- Under "Custom Redirect URIs" add goa-oauth2://localhost/<client-id>, then click "Configure"
- Select "API permissions" in the application sidebar, then "Add a permission" in the tab bar
- Select "Microsoft Graph" and "Delegated Permissions", then add the following permissions:
- offline_access
- contacts.readwrite
- files.readwrite
- files.readwrite.all
- mail.readwrite
- sites.read.all
- sites.readwrite.all
- user.read
13. Click on "Add permissions" to complete the process
Another way to use OneDrive on KDE or GNOME is using what is called "Layering Packages" with rpm-ostree:
- Go to https://copr.fedorainfracloud.org/coprs/jstaf/onedriver/.
- Find the .repo file for your release in the table. Click on the button in the Repo Download column. For Fedora 40, will use jstaf-onedriver-fedora-40.repo
- sudo mv ~/Downloads/jstaf-onedriver.repo /etc/yum.repos.d/
- rpm-ostree update --install onedriver
Warnings:
- "Using rpm-ostree irresponsibly can be destructive."
- "Layering packages may prevent updates and may cause several issues until the layered packages are uninstalled."
- "It is highly advised to not use third-party COPR repos if you can, but if you do realize there are risks associated with it."
Credit goes to d3Xt3r on AnswerOverflow and Pat Connors on Bazzite discourse.
Comments