[Gambas-bugtracker] Bug #2442: Add a System.system which makes available at runtime which os is used
    bugtracker at gambaswiki.org 
    bugtracker at gambaswiki.org
       
    Wed Jan  5 19:34:53 CET 2022
    
    
  
http://gambaswiki.org/bugtracker/edit?object=BUG.2442&from=L21haW4-
Comment #2 by Brian G:
It may be better to use /etc/os_release as this is also the standard for most releases BSD as well.
And has been adopted by freeBsd as well as far as I can see.
Would it not be possible to allow the ID from the OS_release file be the system.system property?
This would be a great help from implementation point of view?
Would it be possible to perhaps add an os class which represents the info from this file as a collection?
if OS!ID == "linuxmint" then
   print OS!PRETTY_NAME;;"Like ";;OS!ID_LIKE
endif
Linux Mint 20.2 Like ubuntu
if OS!ID == "dragonfly" then 
   print OS!PRETTY_NAME ;; "On :";; OS!MACHINE
endif
DragonFlyBSD 6.3-SYNTH On x86_64
Brian G changed the state of the bug to: NeedsInfo.
    
    
More information about the Bugtracker
mailing list