[scribus] Fix for missing images when reloading a file
JLuc
jluc at no-log.org
Mon Oct 1 15:01:20 UTC 2012
Le 30/09/2012 18:38, Erich Dollansky a écrit :
> PFILE="../../../../../../../usr/home/Projekte/ALO/Documents/Descriptions/Graphics/Library/ALO-NewBlue-2.eps"
> 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
since ../../../../../../../usr/home/Projekte/ALO/Documents/Descriptions/Graphics/Library
is again current path.
That way of writing it is ugly but it should not be a problem ?
JLuc
> 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
>> itself...
>
> 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.
>
> Erich
>>
>> have a nice day
>> a.l.e
>>
>>> Hi,
>>>
>>> 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.
>>>
>>> Usage:
>>>
>>> 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:
>>>
>>> http://www.alogreentechnologies.com/scribus/build
>>> http://www.alogreentechnologies.com/scribus/dev
>>> http://www.alogreentechnologies.com/scribus/ed.def
>>> http://www.alogreentechnologies.com/scribus/FixPath.cpp
>>> http://www.alogreentechnologies.com/scribus/FixPath.make
>>> http://www.alogreentechnologies.com/scribus/Globals.h
>>>
>>> Remarks:
>>>
>>> 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
>>> executables.
>>>
>>> build
>>> =====
>>>
>>> Builds FixPath.
>>>
>>> dev
>>> ===
>>>
>>> Sets up the development environment. Run before compiling.
>>>
>>> You must adjust the paths according to your environment.
>>>
>>> ed.def
>>> ======
>>>
>>> This file is included by FixPath.cpp. It contains many macros we
>>> always use.
>>>
>>> FixPath.cpp
>>> ===========
>>>
>>> The source file. The source was tested on FreeBSD 10.0.
>>>
>>> FixPath.make
>>> ============
>>>
>>> The make file. You can run it directly without using build.
>>>
>>> Globals.h
>>> =========
>>>
>>> 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
>>> processes.
>>>
>>> Erich
>>>
>>> ___
>>> Scribus Mailing List: scribus at lists.scribus.net
>>> Edit your options or unsubscribe:
>>> http://lists.scribus.net/mailman/listinfo/scribus
>>> See also:
>>> http://wiki.scribus.net
>>> http://forums.scribus.net
>>
>>
>> ___
>> Scribus Mailing List: scribus at lists.scribus.net
>> Edit your options or unsubscribe:
>> http://lists.scribus.net/mailman/listinfo/scribus
>> See also:
>> http://wiki.scribus.net
>> http://forums.scribus.net
>>
>
>
> ___
> Scribus Mailing List: scribus at lists.scribus.net
> Edit your options or unsubscribe:
> http://lists.scribus.net/mailman/listinfo/scribus
> See also:
> http://wiki.scribus.net
> http://forums.scribus.net
>
More information about the scribus
mailing list