Bug 374218

Summary: working dir of appimage is not the dir from which the appimage is started
Product: [Applications] krita Reporter: Manga Tengu <mangatengu>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: halla
Priority: NOR    
Version: 3.1.1   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Manga Tengu 2016-12-27 17:29:18 UTC
I have some scripts to batch export & resize my kra files as I draw my manga.
This is a very convenient tool as I have lots of pages to proceed.

Works fine with krita from apt-get since a long while now.
However with krita appImage it doesn't work. it gives me:
"File /tmp/.mount_VWclcQ/usr/waste_c7_p10.kra does not exist"

with "waste_c7_p10.kra" being the name of the file proceeded.
Comment 1 Halla Rempt 2016-12-28 09:12:54 UTC
That's because the working dir of krita running from the appimage is different; the export command will work if you specify the path to the image, like 

bin/krita-3.1.1-x86_64.appimage ~/bla.kra --export --export-filename ~/bla.jpg
Comment 2 Manga Tengu 2016-12-28 09:44:46 UTC
(In reply to Boudewijn Rempt from comment #1)
> That's because the working dir of krita running from the appimage is
> different; the export command will work if you specify the path to the
> image, like 
> 
> bin/krita-3.1.1-x86_64.appimage ~/bla.kra --export --export-filename
> ~/bla.jpg

If I have to hardcode the location of the file it works but it means for every location I put files in for transformation I need to input the location by hand.
Comment 3 Halla Rempt 2017-02-27 13:54:50 UTC
*** Bug 376744 has been marked as a duplicate of this bug. ***
Comment 4 Halla Rempt 2018-03-27 08:20:52 UTC
This works with the 4.0 appimage.