Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:munix9
celestia
fix-appimage_dir.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-appimage_dir.patch of Package celestia
--- a/src/celestia/gtk/main.cpp +++ b/src/celestia/gtk/main.cpp @@ -276,13 +276,19 @@ static void initRealize(GtkWidget* widge /* MAIN */ int main(int argc, char* argv[]) { + setlocale(LC_ALL, ""); /* Force number displays into C locale. */ setlocale(LC_NUMERIC, "C"); - setlocale(LC_ALL, ""); #ifndef WIN32 - bindtextdomain(PACKAGE, LOCALEDIR); + string localeDir(LOCALEDIR); + const char *appimageDir = getenv("APPDIR"); + if (appimageDir != NULL) + localeDir = (string)appimageDir + "/" + localeDir; + bindtextdomain(PACKAGE, localeDir.c_str()); bind_textdomain_codeset(PACKAGE, "UTF-8"); + bindtextdomain("celestia_constellations", localeDir.c_str()); + bind_textdomain_codeset("celestia_constellations", "UTF-8"); textdomain(PACKAGE); #endif /* WIN32 */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor