Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX App bundle throws Pango errors #43

Open
ptomato opened this issue Feb 22, 2016 · 1 comment
Open

OSX App bundle throws Pango errors #43

ptomato opened this issue Feb 22, 2016 · 1 comment

Comments

@ptomato
Copy link
Member

ptomato commented Feb 22, 2016

Opened 2012-09-24:

Creating an app bundle works, but when the bundle is run, Pango complains of missing modules. However, the modules are there and correctly referenced in Contents/Resources/etc/pango/pango.modules. It seems that the environment variable PANGO_RC_FILE is ignored.
Output with GTK_DEBUG_LAUNCHER=yes:

+ test x '!=' x
+ EXEC=exec
++ basename ./chimara.app/Contents/MacOS/chimara
+ name=chimara
+ tmp=./chimara.app/Contents/MacOS/chimara
++ dirname ./chimara.app/Contents/MacOS/chimara
+ tmp=./chimara.app/Contents/MacOS
++ dirname ./chimara.app/Contents/MacOS
+ tmp=./chimara.app/Contents
++ dirname ./chimara.app/Contents
+ bundle=./chimara.app
+ bundle_contents=./chimara.app/Contents
+ bundle_res=./chimara.app/Contents/Resources
+ bundle_lib=./chimara.app/Contents/Resources/lib
+ bundle_bin=./chimara.app/Contents/Resources/bin
+ bundle_data=./chimara.app/Contents/Resources/share
+ bundle_etc=./chimara.app/Contents/Resources/etc
+ export DYLD_LIBRARY_PATH=./chimara.app/Contents/Resources/lib
+ DYLD_LIBRARY_PATH=./chimara.app/Contents/Resources/lib
+ export XDG_CONFIG_DIRS=./chimara.app/Contents/Resources/etc/xdg
+ XDG_CONFIG_DIRS=./chimara.app/Contents/Resources/etc/xdg
+ export XDG_DATA_DIRS=./chimara.app/Contents/Resources/share
+ XDG_DATA_DIRS=./chimara.app/Contents/Resources/share
+ export GTK_DATA_PREFIX=./chimara.app/Contents/Resources
+ GTK_DATA_PREFIX=./chimara.app/Contents/Resources
+ export GTK_EXE_PREFIX=./chimara.app/Contents/Resources
+ GTK_EXE_PREFIX=./chimara.app/Contents/Resources
+ export GTK_PATH=./chimara.app/Contents/Resources
+ GTK_PATH=./chimara.app/Contents/Resources
+ export GTK2_RC_FILES=./chimara.app/Contents/Resources/etc/gtk-2.0/gtkrc
+ GTK2_RC_FILES=./chimara.app/Contents/Resources/etc/gtk-2.0/gtkrc
+ export GTK3_RC_FILES=./chimara.app/Contents/Resources/etc/gtk-3.0/gtkrc
+ GTK3_RC_FILES=./chimara.app/Contents/Resources/etc/gtk-3.0/gtkrc
+ export GTK_IM_MODULE_FILE=./chimara.app/Contents/Resources/etc/gtk-3.0/gtk.immodules
+ GTK_IM_MODULE_FILE=./chimara.app/Contents/Resources/etc/gtk-3.0/gtk.immodules
+ export GDK_PIXBUF_MODULE_FILE=./chimara.app/Contents/Resources/etc/gtk-3.0/gdk-pixbuf.loaders
+ GDK_PIXBUF_MODULE_FILE=./chimara.app/Contents/Resources/etc/gtk-3.0/gdk-pixbuf.loaders
+ export PANGO_RC_FILE=./chimara.app/Contents/Resources/etc/pango/pangorc
+ PANGO_RC_FILE=./chimara.app/Contents/Resources/etc/pango/pangorc
+ APP=name
+ I18NDIR=./chimara.app/Contents/Resources/share/locale
+ unset LANG LC_MESSAGES LC_MONETARY LC_COLLATE
++ defaults read .GlobalPreferences AppleLanguages
++ sed -En -e 's/\-/_/' -e s/Hant/TW/ -e s/Hans/CN/ -e 's/[[:space:]]*\"?([[:alnum:]_]+)\"?,?/\1/p'
+ APPLELANGUAGES='en
nl
de
fr
ja
es
it
pt
pt_PT
sv
nb
da
fi
ru
pl
zh_CN
zh_TW
ko
ar
cs
hu
tr'
+ test 'en
nl
de
fr
ja
es
it
pt
pt_PT
sv
nb
da
fi
ru
pl
zh_CN
zh_TW
ko
ar
cs
hu
tr'
+ for L in '$APPLELANGUAGES'
+ test -f ./chimara.app/Contents/Resources/share/locale/en/LC_MESSAGES/name.mo
+ test xen == xen_US
+ test -f ./chimara.app/Contents/Resources/share/locale/en/LC_MESSAGES/name.mo
+ test xen == xen
+ export LANG=en
+ LANG=en
+ break
+ unset APPLELANGUAGES L
++ defaults read .GlobalPreferences AppleCollationOrder
+ APPLECOLLATION=root
+ test -z en -a -n root
+ test '!' -z root
+ export LC_COLLATE=root
+ LC_COLLATE=root
+ unset APPLECOLLATION
++ defaults read .GlobalPreferences AppleLocale
+ APPLELOCALE=nl_NL
+ test -f ./chimara.app/Contents/Resources/share/locale/nl_NL/LC_MESSAGES/name.mo
+ test -z en -a -f ./chimara.app/Contents/Resources/share/locale/nl/LC_MESSAGES/name.mo
+ test -n en
+ test en == nl_NL -o en '!=' en
+ test en == nl -a nl_NL
+ test en == en
+ export LC_MESSAGES=en_US
+ LC_MESSAGES=en_US
++ echo nl_NL
++ sed -En 's/.*currency=([[:alpha:]]+).*/\1/p'
+ CURRENCY=
+ test x '!=' x
+ test -z ''
+ LC_MONETARY=nl_NL
+ export LC_ALL=en_US
+ LC_ALL=en_US
+ unset APPLELOCALE FILES LOC
+ test -f ./chimara.app/Contents/Resources/lib/charset.alias
+ export CHARSETALIASDIR=./chimara.app/Contents/Resources/lib
+ CHARSETALIASDIR=./chimara.app/Contents/Resources/lib
+ EXTRA_ARGS=
+ test -f ./chimara.app/Contents/Resources/environment.sh
+ /bin/expr x : '^x-psn_'
+ exec ./chimara.app/Contents/MacOS/chimara-bin

(chimara-bin:11165): Pango-CRITICAL **: No modules found:
No builtin or dynamically loaded modules were found.
PangoFc will not work correctly.
This probably means there was an error in the creation of:
  '/Users/rodin/gtk/inst/etc/pango/pango.modules'
You should create this file by running:
  pango-querymodules > '/Users/rodin/gtk/inst/etc/pango/pango.modules'

(chimara-bin:11165): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderCoreText', script='latin'

(chimara-bin:11165): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderCoreText', script='common'
@ptomato
Copy link
Member Author

ptomato commented Feb 22, 2016

@ptomato commented 2012-09-24:

By the way, I don't know if you found this, but here's how GEdit makes their app bundle on OS X:
http://git.gnome.org/browse/gedit/tree/osx/README

@ptomato ptomato added the osx label Feb 22, 2016
@ptomato ptomato modified the milestone: 1.0 release Feb 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant