File 001-enable-running-from-non-appimage.patch of Package appimaged
Index: src/appimaged/prerequisites.go
===================================================================
--- src.orig/appimaged/prerequisites.go
+++ src/appimaged/prerequisites.go
@@ -47,24 +47,6 @@ func checkPrerequisites() {
// Ensure that no other processes with the same name are already running under the same user
TerminateOtherInstances()
- // We really don't want users to run this in any other way than from an AppImage
- // because it only creates support issues and we can't update this AppImage
- // using our own dogfood
- // The ONLY exception is developers that know what they are doing
- _, aiEnvIsThere := os.LookupEnv("APPIMAGE")
- _, gcEnvIsThere := os.LookupEnv("GOCACHE")
- if aiEnvIsThere == false {
- // log.Println(os.Environ())
- log.Println("Running from AppImage type", thisai.Type())
- if gcEnvIsThere == false {
- log.Println("Not running from within an AppImage, exiting")
- os.Exit(1)
- } else {
- // Note that this exception is for use during development of this tool only and may go away at any time.
- sendDesktopNotification("Not running from an AppImage", "This is discouraged because some functionality may not be available", 5000)
- }
- }
-
// Check whether we have a sufficient version of unsquashfs for -offset
if helpers.CheckIfSquashfsVersionSufficient("unsquashfs") == false {
os.Exit(1)