Skip to content

About

Open documents with ms office web on linux using rclone (onedrive backend) and a simple synchronization engine.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

Office Online

Linux utility for editing local Office files through the OneDrive web editor.

Stack: Python, PySide6, SQLite, rclone, OneDrive

Local file
    │
    ▼
rclone copyto
    │
    ▼
OneDrive ──────► OneDrive web editor
    │                    │
    │     poll hashes    │
    ◄────────────────────┘
    │
    ▼
Local file

Sync

Local Remote Action
unchanged unchanged —
changed unchanged keep local
unchanged changed pull remote → local
changed changed save remote as .conflict

Changes are detected using QuickXorHash every 5s. Remote changes must remain stable across two polls before being applied.

Session state and hash baselines are stored in SQLite:

~/.local/state/office-online/office-online.db

Requirements

  • Python 3.13+
  • uv
  • rclone
  • OneDrive remote configured as onedrive:
  • Linux desktop with xdg-open

For auth, this uses rclone's OneDrive backend instead of dealing with Microsoft Azure app registration, MSAL, client IDs/secrets, redirect URIs, permissions, and all that tedious setup.

src/office_online/
├── manager.py     # session lifecycle
├── session.py     # hashing, polling, sync/conflicts
├── state.py       # SQLite state
├── rclone.py      # rclone interface
├── gui.py         # PySide6 GUI
├── auth.py        # OneDrive/rclone setup
└── cli.py         # CLI entry point

About

Open documents with ms office web on linux using rclone (onedrive backend) and a simple synchronization engine.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages