Bug 374218 - working dir of appimage is not the dir from which the appimage is started
Summary: working dir of appimage is not the dir from which the appimage is started
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 3.1.1
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
: 376744 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-12-27 17:29 UTC by Manga Tengu
Modified: 2018-03-27 08:20 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.