Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:X0F
go-appimage
001-enable-running-from-non-appimage.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 001-enable-running-from-non-appimage.patch of Package go-appimage
diff --git a/src/appimaged/prerequisites.go b/src/appimaged/prerequisites.go index a614d5f..9edf3af 100644 --- a/src/appimaged/prerequisites.go +++ b/src/appimaged/prerequisites.go @@ -48,24 +48,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 { - // log.Println(os.Environ()) - log.Println("Running from AppImage type", thisai.Type()) - if !gcEnvIsThere { - 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") { os.Exit(1)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor