Skip to content

Commit

Permalink
[scripting] Solaris and Haiku has been added to list of return the na…
Browse files Browse the repository at this point in the history
…me of platform where running Stellarium
  • Loading branch information
alex-w committed Jan 22, 2025
1 parent cbf4302 commit b420cc4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/scripting/StelMainScriptAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1495,6 +1495,10 @@ QString StelMainScriptAPI::getPlatformName(void)
os = "NetBSD";
else if (os.contains("OpenBSD", Qt::CaseInsensitive))
os = "OpenBSD";
else if (os.contains("Haiku", Qt::CaseInsensitive))
os = "Haiku";
else if (os.contains("SunOS", Qt::CaseInsensitive))
os = "Solaris";
else if (os.contains("linux", Qt::CaseInsensitive) || QSysInfo::kernelType().contains("linux", Qt::CaseInsensitive))
os = "Linux";
else if (os.contains("windows", Qt::CaseInsensitive) || os.contains("winrt", Qt::CaseInsensitive))
Expand Down
2 changes: 2 additions & 0 deletions src/scripting/StelMainScriptAPI.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,8 @@ public slots:
//! - Linux
//! - Windows
//! - macOS
//! - Haiku
//! - Solaris
//! - Unknown
static QString getPlatformName(void);

Expand Down

0 comments on commit b420cc4

Please sign in to comment.