Comment 2 for bug 995561

Revision history for this message
David Alessio (david-s-alessio) wrote : Re: [Bug 995561] Warnings after macport installation on Mac OS X

On May 6, 2012, at 11:02 AM, ~suv wrote:

>> 1) Recently Used warning:
>
>> (inkscape:32771): Gtk-WARNING **: Attempting to set the permissions
>> of `/Users/dsa/.local/share/recently-used.xbel', but failed: No such file or directory
>
> Not really an inkscape bug: upstream Gtk+ decided some versions ago to
> no longer check whether '~/.local/share' exists before attempting to
> create 'recently-used.xbel' there (IIRC it happened with the change of
> location from '~/.recently-used.xbel' to '~/.local/share/recently-
> used.xbel' - a file share by all Gtk2 applications).

Arrgh. someone has to create it, either Gtk or app. If Gtk is unwilling to revisit their decision, the responsibility of creating the dir then falls to to the app (Inkscape). Am I wrong?

>
> See for example upstream report
> "671817 - GTK+ doesn't create ~/.local/share (path) and ~/.local/share/recently-used.xbel"
> <https://bugzilla.gnome.org/show_bug.cgi?id=671817>
>
>> 2) ICC profile not found Error:
>
> At what point did Inkscape ask for this color profile?
When I loaded a file created in Inkscape on Linux (Xubuntu 11.10).

>
> Note: with a default installation, default new preferences and a new
> document based on the default template, inkscape does not load a
> specific ICC profile, nor prompt for a missing one. You either have
> migrated the preferences from a system with this profile installed, or
> maybe are working with SVG files created on a different system which
> have this profile linked to (in 'Document Properties > Color
> management').
>
> Could you provide more background information under which circumstances
> you got prompted with this error message?

OK, it's in the .svgz file:
   name="GRACoL2006_Coated1_GCR_bas.icc"
   xlink:href="/usr/share/color/icc/GRACoL2006_Coated1_GCR_bas.icc"
where the full path is hard-coded.

It'd be nice if Inkscape could devise a platform-independant file structure where the default system paths are checked for "system files" like ICC profiles, etc. The objective would be to make a truly portable drawing file (i.e. JPEGs and PNGs just work anywhere).

>
>> iii) sudo mkdir -p /usr/share/color
>> iv) sudo ln -s /Library/ColorSync/Profiles /usr/share/color/icc
>
> Note: on systems where I regularly test Inkscape built via MacPorts (Mac
> OS X 10.5.8, OS X 10.7.3), I never encountered this error message, and
> don't have any profiles installed or linked to '/usr/share/color'
> either:
>
> $ ls -al /usr/share/color
> ls: /usr/share/color: No such file or directory
>
>> 3) Where to install Type 1 Fonts:
>
> Maybe you'd better file a trac ticket for MacPorts requesting to add a
> note displayed when installing Inkscape (the MacPorts port of Inkscape
> is not maintained by the Inkscape project).
>
> ISTM that this is a question about fontconfig - not specific to
> Inkscape: you can add additional font directories with a user font
> configuration file ('~/.fonts.conf') or add them in the 'system' font
> configuration of MacPorts (/opt/local/etc/fonts) with a 'local.conf'
> file.

Quite right.

>
>
> AFAICT none of these reported "issues" are actually Inkscape bugs -> proposing to close as 'Invalid' for Inkscape.

Sure, but please consider my replies to 1 and 2.

Thanks again for Inkscape and your quick reply.

>
> ** Bug watch added: GNOME Bug Tracker #671817
> https://bugzilla.gnome.org/show_bug.cgi?id=671817
>
> ** Tags removed: installation mac os
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/995561
>
> Title:
> Warnings after macport installation on Mac OS X
>
> Status in Inkscape: A Vector Drawing Tool:
> New
>
> Bug description:
> Hello,
>
> I'd like to document the following warnings I saw on Mac OS X 10.7,
> Inkscape Inkscape 0.48.3.1 r9886, installed via mac port; and what I
> did to 'fix' them:
>
> 1) Recently Used warning:
>
> (inkscape:32771): Gtk-WARNING **: Attempting to set the permissions of
> `/Users/dsa/.local/share/recently-used.xbel', but failed: No such file
> or directory
>
> Solution:
> mkdir -p ~/.local/share
>
>
> 2) ICC profile not found Error:
>
> ** Message: lcms: Error 12288; File
> '/usr/share/color/icc/GRACoL2006_Coated1_GCR_bas.icc' not found
>
> (inkscape:32933): Gtk-CRITICAL **: gtk_widget_get_visible: assertion `GTK_IS_WIDGET (widget)' failed
> ** Message: lcms: Error 12288; File '/usr/share/color/icc/GRACoL2006_Coated1_GCR_bas.icc' not found
>
> Solution:
>
> i) Download GRACoL2006_Coated1_GCR_bas.icc
> ii) sudo mv Downloads/GRACoL2006_Coated1_GCR_bas.icc /Library/ColorSync/Profiles/
> iii) sudo mkdir -p /usr/share/color
> iv) sudo ln -s /Library/ColorSync/Profiles /usr/share/color/icc
>
>
> 3) Where to install Type 1 Fonts:
> This is not an Error/Warning but rather a note.
>
> Type 1 fonts for Inkscape can be installed to:
> /opt/local/share/fonts/type1/MY-TYPE1-FONT-DIR/
> a directory containing the AFM, INF, PFB, and PFM files.
>
> Thank you for an AWESOME application and superb port to Mac OS X,
> -david
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/inkscape/+bug/995561/+subscriptions