Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dmach:branches:openSUSE:Tools
osc-appimage
appimage-chdir.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File appimage-chdir.patch of Package osc-appimage
diff -Naur a/osc/babysitter.py b/osc/babysitter.py --- a/osc/babysitter.py 2023-05-10 09:11:35.000000000 +0200 +++ b/osc/babysitter.py 2023-05-23 09:34:23.000993330 +0200 @@ -224,6 +224,13 @@ sys.stdout = os.fdopen(sys.stdout.fileno(), sys.stdout.mode, 1) sys.stderr = os.fdopen(sys.stderr.fileno(), sys.stderr.mode, 1) + appimage = os.getenv("APPIMAGE", None) + owd = os.getenv("OWD", None) + if appimage and owd: + # OWD stands for Old Working Directory and we need to switch there when running in a read-only AppImage + # https://docs.appimage.org/packaging-guide/environment-variables.html + os.chdir(owd) + sys.exit(run(commandline.OscMainCommand())) # vim: sw=4 et
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