[scribus] Fix for missing images when reloading a file
jluc at no-log.org
Mon Oct 1 15:01:20 UTC 2012
Le 30/09/2012 18:38, Erich Dollansky a écrit :
> PFILE contains an impossible path as /usr/home is already the root of the file system.
I'm not aware of how impossible path it is.
If Library is current path, then .. is Graphics, ../.. is Descriptions, etc
and ../../../../../../../ is root : that should not be a problem
is again current path.
That way of writing it is ugly but it should not be a problem ?
> I was told that the problem is caused by links in the path.
> I am not able to avoid links in the path as we use links all over the
> place in our file systems.
>> well, while i wouldn't suggest to anybody to use such names, if this
>> is a problem, i think that it's a bug that should be fixed in scribus
> I highly agree with you here. After digging a bit in the scribus code,
> I decided that I could fix the problem much faster this way. As there
> is a fix in the coming version already included, there is no need for
> fixing the code when my program does the job.
> With other words: I simply needed the fix for my current work as fast
> as possible.
>> have a nice day
>>> scribus 1.4.1 has the problem of not being able to load images with
>>> a link in the path.
>>> I made a very basic program which solves this problem. The program
>>> fixes the paths in the sla files. You have to run it every time
>>> after you have saved a file with scribus.
>>> FixPath FileName
>>> FixPath creates a backup file before changing the original file.
>>> The program is a real hack but it works for me. If it does not work
>>> for you, send me your sla file and I will try to fix it. Of course,
>>> if you find a fix, please publish the new source.
>>> The files:
>>> Set tab width to 3 for proper formatting.
>>> You must create two directories in the place where you store these
>>> file: Inter and Run. Inter and Run are used to store the object and
>>> Builds FixPath.
>>> Sets up the development environment. Run before compiling.
>>> You must adjust the paths according to your environment.
>>> This file is included by FixPath.cpp. It contains many macros we
>>> always use.
>>> The source file. The source was tested on FreeBSD 10.0.
>>> The make file. You can run it directly without using build.
>>> Some global definitions.
>>> Please keep in mind the this is a real hack just done to get a
>>> solution I needed. Keep always backups of the files this program
>>> Scribus Mailing List: scribus at lists.scribus.net
>>> Edit your options or unsubscribe:
>>> See also:
>> Scribus Mailing List: scribus at lists.scribus.net
>> Edit your options or unsubscribe:
>> See also:
> Scribus Mailing List: scribus at lists.scribus.net
> Edit your options or unsubscribe:
> See also:
More information about the scribus