Skip to content

Glass catalogs path for AppImage #29

@ghost

Description

I try to use AppImage builds, but seems like there are some issues with glass catalog path.

Actually, according ../src/gui/MainWindow.cpp, Astree use next path for sGlassPath:

std::string MainWindow::get_glass_path() const
{
	
...

#ifdef __unix__ //linux

	string sAppPath = QCoreApplication::applicationDirPath().toStdString();
	string sGlassPath = sAppPath + "/../share/astree/glass/"; //not very clean but should work
	return sGlassPath;
#endif

	return "invalid glass path";
}

Inside AppImage (if extract it as $ ./Astree*.AppImage --appimage-extract) there is /glass/ catalog, but its path looks next:

/squashfs-root/usr/glass

So, if I run AppImage build Astree recognize only built-in materials (Air; Vacuum; Water).

As result, on opening Newton_BK7_diagonals.astree sample BK7 could not be loaded from ../glass/common_glass.agf: "Glass BK7 doesn't exist in catalog!"

pic.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions