Streamlined Rust WebView for use with SPAs.
Go to file
Yannick Uhlmann 1695bc11ca update example 2020-12-31 12:19:41 +01:00
example update example 2020-12-31 12:19:41 +01:00
src fxied condition 2020-12-31 12:16:54 +01:00
.gitignore first commit 2020-12-31 11:44:06 +01:00
Cargo.lock first commit 2020-12-31 11:44:06 +01:00
Cargo.toml first commit 2020-12-31 11:44:06 +01:00
LICENSE first commit 2020-12-31 11:44:06 +01:00
README.md dynamic title 2020-12-31 12:15:27 +01:00

README.md

Viewer for WebApps

Based on web-view for Rust.

Intended for use with the PinePhone / Phosh.

Build

$ cargo build

Install

Put ./target/debug/webviewer somewhere in your $PATH.

$ sudo cp -v ./target/debug/webviewer /usr/bin/

Apps

See examples for how to use this with websites/SPAs.

Home Screen Icon

Create a script launching webviewer with the URL of the page/SPA you want.

webviewer https://protonmail.com Protonmail

Where the first argument has to be the URL and the second argument is the Title of the resulting window.

Create desktop entry:

[Desktop Entry]
Version=0.1
Name=Protonmail
Comment=Protonmail Client
Exec=protonmail.sh
Icon=protonmail.png
Terminal=false
Type=Application

Where Exec points to a specific path if the shell wrapper is not in your $PATH, and Icon points to a specific path, where the corresponding icon is located. See the gnome documentation on this topic for exact instructions.

What doesn't work

  • Links that open new windows