-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add flatpak
name to FreeCAD core so it displays in the About dialog if built as flatpak
#119
Comments
We can, I assume those are environment variables, what are the expected contents of the variables? |
I'm not sure if it's needed though, since in the os info it shows it's running on flatpak, for example: OS: KDE Flatpak runtime (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.2.29603 (Git)
Build type: Release
Branch: (HEAD detached at 0.20.2)
Hash: 930dd9a76203a3260b1e6256c70c1c3cad8c5cb8
Python 3.10.6, Qt 5.15.8, Coin 4.0.0, Vtk 8.2.0, OCC 7.6.3
Locale: German/Switzerland (de_CH)
Installed mods: |
we can check for existence of |
char *appimage = getenv("APPIMAGE");
if (appimage)
str << " AppImage";
char* snap = getenv("SNAP_REVISION");
if (snap)
str << " Snap " << snap;
str << '\n'; Aside:
|
it's better to check for the |
in Snap it seems there is an additional info like: |
@easyw see https://forum.freecad.org/viewtopic.php?p=678285&sid=3c0c01d73465a17e9d9c6f3828e00678#p678285 |
@luzpaz |
flatpak is already mentioned in the OS field so I consider this unnecessary |
@adrianinsaval i disagree... if someone is scanning a list of different About infos in a row having the flatpak text in the same place where snap is helpful and not redudant. |
Thank you! |
The FreeCAD About dialog currently will list AppImage or Snap but not flatpak:
https://github.com/FreeCAD/FreeCAD/blob/8d1c9c256318cba56e6cdabefad7445fc0badfb0/src/Gui/Splashscreen.cpp#L751-L757
Shall we add it ?
The text was updated successfully, but these errors were encountered: