Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Simplify Linux auth setup guidance

Neeraj Gupta36791d7595f1
diff --git a/docs/docs/auth/troubleshooting/linux-system-auth.md b/docs/docs/auth/troubleshooting/linux-system-auth.md
index c19c289495..4b2be36ced 100644
--- a/docs/docs/auth/troubleshooting/linux-system-auth.md
+++ b/docs/docs/auth/troubleshooting/linux-system-auth.md
@@ -27,10 +27,11 @@ The policy action is:
io.ente.auth.unlock
```
-### Flatpak
+### Flatpak, AppImage, or Manual Builds
-Flatpak apps cannot install host Polkit policies by themselves. Download the
-policy from GitHub and verify its SHA-256 checksum before installing it:
+Flatpak apps cannot install host Polkit policies by themselves. AppImage or
+manual builds may also need manual setup. Download the policy from GitHub and
+verify its SHA-256 checksum before installing it:
```sh
policy_url="https://raw.githubusercontent.com/ente-io/ente/main/mobile/apps/auth/assets/polkit/io.ente.auth.policy"
@@ -56,29 +57,6 @@ fi
rm -f "$policy"
```
-### AppImage or Manual Builds
-
-If Ente Auth shows **Linux setup required**, click **Copy setup command** in the
-dialog and run the copied command in a terminal.
-
-For AppImage builds, you can also extract the AppImage and install the bundled
-policy:
-
-```sh
-./ente-auth.AppImage --appimage-extract
-
-sudo install -D -o root -g root -m 0644 \
- squashfs-root/data/flutter_assets/assets/polkit/io.ente.auth.policy \
- /usr/share/polkit-1/actions/io.ente.auth.policy
-
-if command -v chcon >/dev/null 2>&1; then
- sudo chcon system_u:object_r:usr_t:s0 \
- /usr/share/polkit-1/actions/io.ente.auth.policy || true
-fi
-
-pkaction --action-id io.ente.auth.unlock --verbose
-```
-
## Fingerprint Prompts
The Polkit policy only registers Ente Auth as an application that can request
diff --git a/mobile/packages/lock_screen/lib/ui/lock_screen_options.dart b/mobile/packages/lock_screen/lib/ui/lock_screen_options.dart
index 71e882abd6..7998972918 100644
--- a/mobile/packages/lock_screen/lib/ui/lock_screen_options.dart
+++ b/mobile/packages/lock_screen/lib/ui/lock_screen_options.dart
@@ -22,7 +22,6 @@ import "package:ente_ui/components/toggle_switch_widget.dart";
import "package:ente_ui/theme/ente_theme.dart";
import "package:ente_utils/platform_util.dart";
import "package:flutter/material.dart";
-import "package:flutter/services.dart";
const _linuxSystemAuthGuideUrl =
"https://ente.com/help/auth/troubleshooting/linux-system-auth";
@@ -96,17 +95,6 @@ class _LockScreenOptionsState extends State<LockScreenOptions> {
);
},
),
- ButtonWidget(
- buttonType: ButtonType.secondary,
- labelText: pendingTranslation("Copy setup command"),
- isInAlert: true,
- shouldShowSuccessConfirmation: true,
- onTap: () async {
- await Clipboard.setData(
- ClipboardData(text: linuxStatus!.policyInstallCommand),
- );
- },
- ),
],
);
await _initializeSettings();