Skip to content

Fix for Ubuntu Wayland#69

Open
0xTriboulet wants to merge 9 commits intoraindropio:masterfrom
0xTriboulet:master
Open

Fix for Ubuntu Wayland#69
0xTriboulet wants to merge 9 commits intoraindropio:masterfrom
0xTriboulet:master

Conversation

@0xTriboulet
Copy link

This PR adds Ubuntu compatibility by building a .deb that can be installed with
sudo dpkg -i Raindrop.io_5.7.3_amd64.deb

Validated that the installation works, and login functionality works. Also added a build .yml that should work with release tags, but that can be changed to work with pushes to master since I think that's how the current ones in master work right now.

I leaned heavily on Copilot to drive these changes so I apologize if it's too much AI slop ahead of time. Any and all feedback is welcome.

0xTriboulet and others added 9 commits March 3, 2026 19:09
- src/index.mjs: add ozone-platform-hint=auto for Linux before app.whenReady()
  so all instances (including rnio:// deep-link second-instances) auto-select
  Wayland or fall back to X11 — no manual --ozone-platform flag needed.

- build/config.js: change Linux target from [snap] to [AppImage, deb, snap];
  add snap plugs (x11, wayland, desktop-legacy, opengl, home, network,
  browser-support) so the snap version works without manual plug connections.

- build/version.mjs: fix import.meta.dirname → fileURLToPath pattern for
  Node 18 compatibility (import.meta.dirname requires Node >=20.11).

- build/webapp.js: skip webapp rebuild when dist already present; pass empty
  SENTRY_AUTH_TOKEN so Sentry CLI plugin degrades gracefully on local builds.

- .github/workflows/linux.yml: upload AppImage and deb as CI artifacts
  alongside the existing Snap Store publish step.

- build.sh: convenience build script for local Linux builds.

- RAINDROP-REPORT.md: analysis, changes, build instructions, binary path.

Upstream changes merged: raindropio/desktop@4601c1a (webapp submodule update).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
AppImages built by electron-builder require libfuse2, which is absent on
Ubuntu 22.04+ (only libfuse3 is present by default). Rather than installing
libfuse2, use the .deb package as the recommended artifact on Ubuntu/Debian.

- build.sh: replace AppImage run hint with 'sudo dpkg -i' command; add note
  that AppImage requires libfuse2.
- RAINDROP-REPORT.md: make deb the recommended binary; add Known Issues
  section documenting the libfuse2 requirement.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…elease

- README.md: add Ubuntu/Linux build section with prerequisites, build.sh
  usage, dpkg install command, and libfuse2 note.
- linux.yml: trigger on master (in addition to release/production); use
  --publish always so electron-builder creates a GitHub Release draft and
  attaches the .deb; remove Snapcraft publish step; keep deb artifact upload.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add permissions: contents: write (required for GITHUB_TOKEN to create releases)
- Add workflow_dispatch trigger (allows manual runs from Actions tab)
- Upgrade actions/checkout to v4 and actions/setup-node to v4
- Remove SENTRY_AUTH_TOKEN env (not needed, webapp build skips when dist exists)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The webapp's webpack config includes a Sentry CLI plugin that exits non-zero
when SENTRY_AUTH_TOKEN is missing. The dist files are still produced despite
the error. Catch the error, verify dist/electron/prod/index.html exists, and
continue the build.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- package.json: change repository URL to 0xTriboulet/desktop so
  electron-builder publishes the GitHub Release to the fork.
- linux.yml: trigger only on v* tags (+ workflow_dispatch); build only deb
  target (--linux deb) to avoid snapcraft dependency; remove branch triggers.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@0xTriboulet 0xTriboulet changed the title Fix for Ubuntu Fix for Ubuntu Wayland Mar 4, 2026
@MigProPlayer
Copy link

MigProPlayer commented Mar 13, 2026

Hey, I just noticed I made a pull request very similar to yours, but mine also builds rpm and appimage besides just snap and deb. I should mention that I didn't run into your crash on Wayland. I tried it on both Fedora Workstation 43 (GNOME, on Wayland) and Linux Mint (Cinnamon, on both X11 and Wayland) and all 3 times it worked flawlessly.

I'll boot up a live Ubuntu install to test and I'll come back with updates.

@MigProPlayer
Copy link

MigProPlayer commented Mar 13, 2026

Nope, wasn't able to reproduce your issue on an Ubuntu 24.04.4 live install with the .deb from my pull request.

Proof of it working:
Raindrop on Ubuntu

Must be an issue either on your side or with your changes.

@MigProPlayer
Copy link

MigProPlayer commented Mar 13, 2026

Sorry, I misread your issue. I thought you introduced a bug with your pull request and weren't able to fix it.
Apologies if I caused any confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants