I have just tried MacPorts and I found an interesting thing.
With MacPorts, Inkscape displays correctly the Portuguese localization. However, this version has a drawback in the fact that it has no support to drag-and-drop. With the official Inkscape.app, I am able to drag svg files into the inkscape icon in the Dock, and it open the file to me...
Victor Domingos http://lojamac.com/blog
On 6/4/07, Victor Domingos <editor.arcosonline@...155...> wrote:
I have just tried MacPorts and I found an interesting thing.
With MacPorts, Inkscape displays correctly the Portuguese localization. However, this version has a drawback in the fact that it has no support to drag-and-drop. With the official Inkscape.app, I am able to drag svg files into the inkscape icon in the Dock, and it open the file to me...
creating a drag and dropable Inkscape app should be quite easy with platypus http://www.macosxhints.com/article.php?story=20041111082112274 just create a shell script which launches Inkscape (and add MacPort to the path before or use an absolute path).
Hope that helps. JiHO
Em 2007/06/04, às 08:50, jiho escreveu:
On 6/4/07, Victor Domingos <editor.arcosonline@...155...> wrote:
I have just tried MacPorts and I found an interesting thing.
With MacPorts, Inkscape displays correctly the Portuguese localization. However, this version has a drawback in the fact that it has no support to drag-and-drop. With the official Inkscape.app, I am able to drag svg files into the inkscape icon in the Dock, and it open the file to me...
creating a drag and dropable Inkscape app should be quite easy with platypus http://www.macosxhints.com/article.php?story=20041111082112274 just create a shell script which launches Inkscape (and add MacPort to the path before or use an absolute path).
Hope that helps. JiHO
Is there any easy way to convert my MacPorts built of Inkscape (or GIMP,...) into a .app file, so that I can distribute an easy to install appllication?
Thanks, Victor Domingos http://lojamac.com/blog
On 6/4/07, Victor Domingos <editor.arcosonline@...155...> wrote:
On 6/4/07, Victor Domingos <editor.arcosonline@...155...> wrote:
I have just tried MacPorts and I found an interesting thing.
With MacPorts, Inkscape displays correctly the Portuguese localization. However, this version has a drawback in the fact that it has no support to drag-and-drop. With the official Inkscape.app, I am able to drag svg files into the inkscape icon in the Dock, and it open the file to me...
creating a drag and dropable Inkscape app should be quite easy with platypus http://www.macosxhints.com/article.php?story=20041111082112274 just create a shell script which launches Inkscape (and add MacPort to the path before or use an absolute path).
Hope that helps. JiHO
Is there any easy way to convert my MacPorts built of Inkscape (or GIMP,...) into a .app file, so that I can distribute an easy to install appllication?
Mac ports has a package command that is supposed to turn Inkscape and its dependencies into a pkg that can be installed on other systems but I don't know much about it. Other than that, creating an app bundle is not complicated conceptually but you have to know what you are doing. You can follow the code which is used for Inkscape in packaging/macosx/osx-app.sh. I think it would probably be easier and more productive to track down the problem with the portuguese localisation in the current system used to produce the app bundle rather than trying to redo it from the ground up.
On 04/06/2007, at 9:34 PM, jiho wrote:
Is there any easy way to convert my MacPorts built of Inkscape (or GIMP,...) into a .app file, so that I can distribute an easy to install appllication?
Mac ports has a package command that is supposed to turn Inkscape and its dependencies into a pkg that can be installed on other systems but I don't know much about it. Other than that, creating an app bundle is not complicated conceptually but you have to know what you are doing. You can follow the code which is used for Inkscape in packaging/macosx/osx-app.sh. I think it would probably be easier and more productive to track down the problem with the portuguese localisation in the current system used to produce the app bundle rather than trying to redo it from the ground up.
I've spent a number of hours trying to figure out this problem with a French user named Christian Oihenart. For some of his machines (in a school) there did not seem to be a way we could robustly and consistently determine the language setting -- the system preferences setting did not seem to exist. I can tell you what I know about this problem, but I've given up on trying to fix it, and just provided him with a version of the app bundle with the language setting hard-coded to French, that he could install on the classroom machines.
The problem occurs when the command we use to determine language setting: "defaults read .GlobalPreferences AppleCollationOrder" returns an error: The domain/default pair of (.GlobalPreferences, AppleCollationOrder) does not exist This seems to happen on some OS X machines, and no-one can seem to determine why the preferences setting doesn't exist. It doesn't happen on any machine I have access to.
One possible workaround (that didn't work for all Christian's machines either) was to use the language preference for the language used at the time OS X was installed. To do this we try and determine the language setting using: defaults read .GlobalPreferences AppleLocale if the first attempt failed.
I have a modified, uncommitted version of packaging/macosx/Resources/ bin/inkscape with the relevant lines changed to the following, which may be worth trying:
-# TODO: Have to add ".UTF-8" to the LANG since ommiting causes Inkscape -# to crash on startup in locale_from_utf8(). -export LANG="`grep "`defaults read .GlobalPreferences AppleCollationOrder \ - 2>&1`_" /usr/share/locale/locale.alias | tail -n1 | sed 's/ ./ /' | \ - awk '{print $2}'`.UTF-8"
+# If the AppleCollationOrder preference doesn't exist, we fall back to using +# the AppleLocale preference. +LANGSTR=`defaults read .GlobalPreferences AppleCollationOrder 2>/dev/ null` +if [ "$?" != "0" ] +then + echo "Warning: AppleCollationOrder setting not found, using AppleLocale." + LANGSTR=`defaults read .GlobalPreferences AppleLocale 2>/dev/ null | \ + sed 's/_.*//'` +fi + +# NOTE: Have to add ".UTF-8" to the LANG since ommiting causes Inkscape +# to crash on startup in locale_from_utf8(). +export LANG="`grep "`echo $LANGSTR`_" /usr/lib/X11/locale/ locale.alias | \ + tail -n1 | sed 's/./ /' | awk '{print $2}'`.UTF-8" +echo "Setting Language: $LANG"
Cheers, Michael
participants (3)
-
jiho
-
Michael Wybrow
-
Victor Domingos