From 0d7f478f4f45bbf1b3eb1dcb03048954ea4a3557 Mon Sep 17 00:00:00 2001 From: Dennis Marttinen Date: Tue, 30 Jan 2024 19:25:21 +0200 Subject: [PATCH] docs: add badges to README, add link to FileTypeExt Signed-off-by: Dennis Marttinen --- README.md | 3 +++ src/client/main.rs | 1 + 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index e6eaa91..4ba8c69 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # nm-proxy +[![Build](https://github.com/twelho/nm-proxy/actions/workflows/build.yaml/badge.svg)](https://github.com/twelho/nm-proxy/actions/workflows/build.yaml) +[![dependency status](https://deps.rs/repo/github/twelho/nm-proxy/status.svg)](https://deps.rs/repo/github/twelho/nm-proxy) + [Native messaging](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_messaging) proxy for Flatpak'ed browsers. Temporary solution until https://github.com/flatpak/xdg-desktop-portal/issues/655 gets resolved, potentially by https://github.com/flatpak/xdg-desktop-portal/pull/705. ## Architecture diff --git a/src/client/main.rs b/src/client/main.rs index b815704..f7102e3 100644 --- a/src/client/main.rs +++ b/src/client/main.rs @@ -52,6 +52,7 @@ async fn find_socket() -> Result { // TODO: is_socket() does not work in Flatpak, bug in Rust? Debug information: // Inside Flatpak: FileType(FileType { mode: 32768 }) // On host system: FileType(FileType { mode: 49152 }) + // https://github.com/rust-lang/rust/issues/27796 // Pick the first file with a matching name, testing for sockets // with is_socket() does not work in a Flatpak for some reason