Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, September 2005
[QT4] Acces to OS Version # for Linux?

Pages: Prev | 1 | 2 | 3 | Next

Message 1 in thread

Is there an equivalent to QSysInfo for Linux?

Seems odd that only Mac and Windows are defined in this class.

TIA

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

--
 [ signature omitted ] 

Message 2 in thread

On Thursday 15 September 2005 02:35 pm, Charles Burns wrote:
> Is there an equivalent to QSysInfo for Linux?
>
> Seems odd that only Mac and Windows are defined in this class.

If there was, how would you propose it worked?

Caleb

--
 [ signature omitted ] 

Message 3 in thread

The same as QSysInfo. Is this a trick question?


>From: Caleb Tennis <caleb@xxxxxxxxxxxx>
>To: qt-interest@xxxxxxxxxxxxx
>Subject: Re: [QT4] Acces to OS Version # for Linux?
>Date: Thu, 15 Sep 2005 15:55:19 -0500
>
>On Thursday 15 September 2005 02:35 pm, Charles Burns wrote:
> > Is there an equivalent to QSysInfo for Linux?
> >
> > Seems odd that only Mac and Windows are defined in this class.
>
>If there was, how would you propose it worked?
>
>Caleb
>
>--
>To unsubscribe - send "unsubscribe" in the body to 
>qt-interest-request@xxxxxxxxxxxxx
>List archive and information: http://lists.trolltech.com/qt-interest/
>

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

--
 [ signature omitted ] 

Message 4 in thread

On Sep 15, 2005, at 4:36 PM, Charles Burns wrote:

> The same as QSysInfo. Is this a trick question?
>

Yes, it was.  I meant, what do you propose your system would return  
as a Linux version?  The kernel number?  "SUSE 9.3"?  What does the  
phrase "Linux version" mean?

--
 [ signature omitted ] 

Message 5 in thread

On 15.09.05 17:43:09, Caleb Tennis wrote:
> On Sep 15, 2005, at 4:36 PM, Charles Burns wrote:
> 
> >The same as QSysInfo. Is this a trick question?
> >
> 
> Yes, it was.  I meant, what do you propose your system would return as a Linux 
> version?  The kernel number?  "SUSE 9.3"?  What does the phrase "Linux version" 
> mean?

Linux _is_ the kernel, so it can only return the version number of the
kernel. If it returns anything like SuSE 9.3 or Debian 3.1, this would
be a distribution name/version, not the Linux version. 

Andreas

-- 
 [ signature omitted ] 

Message 6 in thread

On September 15, 2005 05:21 pm, Andreas Pakulat wrote:
> On 15.09.05 17:43:09, Caleb Tennis wrote:
> > On Sep 15, 2005, at 4:36 PM, Charles Burns wrote:
> > >The same as QSysInfo. Is this a trick question?
> >
> > Yes, it was.  I meant, what do you propose your system would return as a
> > Linux version?  The kernel number?  "SUSE 9.3"?  What does the phrase
> > "Linux version" mean?
>
> Linux _is_ the kernel, so it can only return the version number of the
> kernel. If it returns anything like SuSE 9.3 or Debian 3.1, this would
> be a distribution name/version, not the Linux version.

But Linux isn't the OS. Does the SysInfo return the kernel32.dll or 
ntoskrnl.exe version? I don't think so ;)

> Andreas

-- 
 [ signature omitted ] 

Message 7 in thread

On 15.09.05 17:38:38, Thomas Fjellstrom wrote:
> On September 15, 2005 05:21 pm, Andreas Pakulat wrote:
> > On 15.09.05 17:43:09, Caleb Tennis wrote:
> > > On Sep 15, 2005, at 4:36 PM, Charles Burns wrote:
> > > >The same as QSysInfo. Is this a trick question?
> > >
> > > Yes, it was.  I meant, what do you propose your system would return as a
> > > Linux version?  The kernel number?  "SUSE 9.3"?  What does the phrase
> > > "Linux version" mean?
> >
> > Linux _is_ the kernel, so it can only return the version number of the
> > kernel. If it returns anything like SuSE 9.3 or Debian 3.1, this would
> > be a distribution name/version, not the Linux version.
> 
> But Linux isn't the OS. Does the SysInfo return the kernel32.dll or 
> ntoskrnl.exe version? I don't think so ;)

I don't want to start a Flame here or something, but "Linux" actually
is the OS. Of course for having something usable you'll need some tools
like a shell and cp and such things. But I do _not_ consider SuSE 9.3 an
Operating System, its much more. 

If at all QSysInfo should return something Like

<kernel-version> running on <distribution-name> <distribution-version> 

But then, I don't know QSysInfo and the format it returns...

Andreas

-- 
 [ signature omitted ] 

Message 8 in thread

Andreas Pakulat wrote:
> I don't want to start a Flame here or something, but "Linux" actually
> is the OS. Of course for having something usable you'll need some tools
> like a shell and cp and such things. But I do _not_ consider SuSE 9.3 an
> Operating System, its much more. 

Well, no. Linux is the kernel. The combination of kernel and 
distribution packages would be called an OS.


regards,
Robin

--
 [ signature omitted ] 

Message 9 in thread

On 16.09.05 13:30:52, Robin Ericsson wrote:
> Andreas Pakulat wrote:
> >I don't want to start a Flame here or something, but "Linux" actually
> >is the OS. Of course for having something usable you'll need some tools
> >like a shell and cp and such things. But I do _not_ consider SuSE 9.3 an
> >Operating System, its much more. 
> 
> Well, no. Linux is the kernel. The combination of kernel and distribution 
> packages would be called an OS.

Well, no :-) At least I consider it a bit different. I do agree that Linux
is the kernel. But SuSE is by far more than just an Operating System. 

Also consider LFS, where there is no distribution - where is the OS
there? Normally I would consider the kernel+shell+tools like cp/mv to
belong to the Operating System. Anything else is "extra" Software.

But that's my opinion and I'm not going to write any more comments on
this..

Andreas

-- 
 [ signature omitted ] 

Message 10 in thread

Andreas Pakulat wrote:
> On 16.09.05 13:30:52, Robin Ericsson wrote:
>> Well, no. Linux is the kernel. The combination of kernel and distribution 
>> packages would be called an OS.
> 
> Well, no :-) At least I consider it a bit different. I do agree that Linux 
> is the kernel. But SuSE is by far more than just an Operating System.

No. :)

Linux is "just" the kernel.

The OS is not Linux, but GNU/Linux; Linux kernel + GNU (supporting 
libraries, shell, basic tools) = OS.

OS + additional apps = distribution.

Hope I cleared it up. :)

--
 [ signature omitted ] 

Message 11 in thread

On 16.09.05 22:18:38, Nikos Chantziaras wrote:
> Andreas Pakulat wrote:
> >On 16.09.05 13:30:52, Robin Ericsson wrote:
> >>Well, no. Linux is the kernel. The combination of kernel and distribution 
> >>packages would be called an OS.
> >Well, no :-) At least I consider it a bit different. I do agree that Linux is 
> >the kernel. But SuSE is by far more than just an Operating System.
> 
> No. :)

Well, I said nothing wrong, according to you. I only left a part out...

> Linux is "just" the kernel.

ACK.

> The OS is not Linux, but GNU/Linux; Linux kernel + GNU (supporting libraries, 
> shell, basic tools) = OS.

Ack. I did not realize that yet (at least not really), which is a shame,
as I'm running:

andreas@morpheus:~>uname -a
Linux morpheus.apaku.dnsalias.org 2.6.12.4-cherry+radeon #1 Wed Aug 17 12:30:45 CEST 2005 i686 GNU/Linux

:-(

> OS + additional apps = distribution.

Full ACK.

Andreas

-- 
 [ signature omitted ] 

Message 12 in thread

When I use QSysInfo in Windows, I get an enumerated representation of the OS 
Version that tells me what release of Windows the application is running 
under.

The application I'm writing is required to run on Windows XP SP2 or later. 
Any earlier version and the application puts up and error and quits.

The application is also required to run under Macintosh 10.3 or newer. 
Anything earlier and you can guess what the application does.

The application is also required to run under RedHat 3 or newer. So I'd 
really like to know a) is the program running under RedHat linux and b) is 
the release 3.0 or newer.

Is there a way to get access to this information under the linux release of 
QT 4.0.1?


>From: Caleb Tennis <caleb@xxxxxxxxxxxx>
>To: Charles Burns <burnsinfosys@xxxxxxxxxxx>
>CC: qt-interest@xxxxxxxxxxxxx
>Subject: Re: [QT4] Acces to OS Version # for Linux?
>Date: Thu, 15 Sep 2005 17:43:09 -0500
>
>
>On Sep 15, 2005, at 4:36 PM, Charles Burns wrote:
>
>>The same as QSysInfo. Is this a trick question?
>>
>
>Yes, it was.  I meant, what do you propose your system would return  as a 
>Linux version?  The kernel number?  "SUSE 9.3"?  What does the  phrase 
>"Linux version" mean?
>
>--
>To unsubscribe - send "unsubscribe" in the body to 
>qt-interest-request@xxxxxxxxxxxxx
>List archive and information: http://lists.trolltech.com/qt-interest/
>

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

--
 [ signature omitted ] 

Message 13 in thread

On Sep 15, 2005, at 8:06 PM, Charles Burns wrote:

> When I use QSysInfo in Windows, I get an enumerated representation  
> of the OS Version that tells me what release of Windows the  
> application is running under.
>
> The application I'm writing is required to run on Windows XP SP2 or  
> later. Any earlier version and the application puts up and error  
> and quits.
>
> The application is also required to run under Macintosh 10.3 or  
> newer. Anything earlier and you can guess what the application does.
>
> The application is also required to run under RedHat 3 or newer. So  
> I'd really like to know a) is the program running under RedHat  
> linux and b) is the release 3.0 or newer.
>
> Is there a way to get access to this information under the linux  
> release of QT 4.0.1?
>

The concept works for Mac and Windows because the releases are  
centralized and distributed by a single entity.

But my point is that obtaining an "OS version" for Linux doesn't  
really work because there are lots of kernels, distributions, and  
packages - so there's no conventional way of noting what OS version  
is being used.  By writing your application for RedHat 3 or newer,  
you would be precluding a large portion of people who would be  
running other Linux distributions or Unices.

Caleb

--
 [ signature omitted ] 

Message 14 in thread

can't you launch the shell command "uname" and read its output?


Caleb Tennis a écrit :

> On Sep 15, 2005, at 8:06 PM, Charles Burns wrote:
>
>> When I use QSysInfo in Windows, I get an enumerated representation 
>> of the OS Version that tells me what release of Windows the 
>> application is running under.
>>
>> The application I'm writing is required to run on Windows XP SP2 or 
>> later. Any earlier version and the application puts up and error  and
>> quits.
>>
>> The application is also required to run under Macintosh 10.3 or 
>> newer. Anything earlier and you can guess what the application does.
>>
>> The application is also required to run under RedHat 3 or newer. So 
>> I'd really like to know a) is the program running under RedHat  linux
>> and b) is the release 3.0 or newer.
>>
>> Is there a way to get access to this information under the linux 
>> release of QT 4.0.1?
>>
>
> The concept works for Mac and Windows because the releases are 
> centralized and distributed by a single entity.
>
> But my point is that obtaining an "OS version" for Linux doesn't 
> really work because there are lots of kernels, distributions, and 
> packages - so there's no conventional way of noting what OS version 
> is being used.  By writing your application for RedHat 3 or newer, 
> you would be precluding a large portion of people who would be 
> running other Linux distributions or Unices.
>
> Caleb
>
> -- 
> To unsubscribe - send "unsubscribe" in the body to
> qt-interest-request@xxxxxxxxxxxxx
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>

--
 [ signature omitted ] 

Message 15 in thread

On September 15, 2005 11:10 pm, Renaud Lepage wrote:
> can't you launch the shell command "uname" and read its output?

You might be able to. Its not a given that its there on all Unix machines, noe 
that it uses the same format, or the same args. AFAIK.

-- 
 [ signature omitted ] 

Pages: Prev | 1 | 2 | 3 | Next