-
Notifications
You must be signed in to change notification settings - Fork 41
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
sonata on OS X #67
Comments
It doesn't work on OSX (per #67) and even so, the documentation says it should not be used unless in specific cases, which we are not considering in Sonata. For more information, see https://docs.python.org/3/library/locale.html#access-to-message-catalogs
Hi, I'l be glad to add the launcher you made into the repository, it can be installed while doing |
In the applescript, you can replace |
What if Gtk is installed somewhere else, like the user's own directory? |
Hi, I agree with multani that env settings should not be part of a launcher script/app, certainly not this static. On OS X, Gtk+3 could easily be installed elsewhere, already by using different package manager than homebrew. On my system If the goal is an OS X launcher, some thoughts:
I hope an experienced OS X developer reads this and can suggest a better way to launch (or package) sonata on OS X. |
Just found this way back in my inbox, sorry for taking so long to respond. Setting the As you said, a single .app that contains all dependencies is indeed the way most GUI applications are distributed. I am not very experienced with python, but a quick google-search turned up py2app. Another hurdle is that OSX does not come with Python 3, so that might have to be bundled as well as gtk, etc. |
As mentionned in #75, removing |
It seems the |
See this SO post for an OSX solution. Still requires gettext as a dependency. |
Sonata seems to work fine on OS X with homebrew. I did have to change one line of code to make it work (see below). My notes:
Installed the Sonata dependencies:
On 2014-08-17 this added (with a lot of dependencies):
Created a
~/.mpdconf
file and restarted mpd.Downloaded sonata from github. On first try, ./run-sonata exits with an error:
In
sonata/launcher.py
locale.bindtextdomain('sonata', locales_path)
was changed to
gettext.bindtextdomain('sonata', locales_path)
After this, ./run-sonata exits with a different error (not related to sonata):
Perhaps we only need the last line, but I ran the following three commands:
brew install gsettings-desktop-schemas glib-compile-schemas /usr/local/Cellar/gtk+3/3.12.2/share/glib-2.0/schemas/ export GSETTINGS_SCHEMA_DIR=/usr/local/Cellar/gtk+3/3.12.2/share/glib-2.0/schemas/
Then ./run-sonata.py launched on OS X (Mavericks) and connected to the local mpd server -- made my day!
As final touch: made a launcher app using the Applescript Editor, by saving the lines below as "Application" and updating the icon to something recognisable. (Note: any updates to gtk will need updates to the script)
The text was updated successfully, but these errors were encountered: