Skip to content

SchneiderInfosystems/Linux4D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux4D

Linux4D is an open-source Delphi library designed to simplify system-oriented programming on Linux. It allows you to easily retrieve crucial information about the host system.

Key Features (Open-Source Core)

The open-source version of Linux4D helps you:

  • Identify the installed system language and region.
  • Get the list of the installed user
  • Detect the system's active encoding.
  • Determine the specific Linux distribution and its version.
  • Retrieve information about the Linux kernel and CPU hardware.
  • Helper function to retrieve system paths and handling of file permissions.
  • Check if an application is running with root rights.
  • Elevated start with root rights.

Getting Started

  1. Clone the repository: git clone https://github.com/SchneiderInfosystems/Linux4D.git
  2. Add the source path to your Delphi project's search path.
  3. Check the following example code:
uses LX4D.SystemInfo; 

procedure TForm1.Button1Click(Sender: TObject);
begin
  ShowMessage('Distribution: ' + TLX4DSystemInfo.Distribution.PrettyName);
  ShowMessage('Language: ' + TLX4DSystemInfo.LanguagePretty);
  ShowMessage('Kernel: ' + TLX4DSystemInfo.Kernel.PrettyName);
end;

Wiki

For a quick start guide, detailed functional overview, and more examples, please visit our Wiki.

License (Open-Source Core)

The open-source Linux4D library is licensed under the Apache-2.0 license. Please see the LICENSE file for more details.

Extended Linux4D (Commercial Library)

For users requiring advanced system interaction capabilities, we offer Extended Linux4D. This commercial library builds upon the open-source core and provides additional features, including:

  • Querying installed system packages.
  • Programmatic installation of specific packages.
  • A secure mechanism for running parts of your application or the entire application with root privileges.
  • Executing Bash commands from your application, with options for synchronous (blocking) or asynchronous execution.

Interested in Extended Linux4D?

For inquiries, tailored solutions, and quotes, please contact us at [email protected].

Sep 2025, Schneider Infosystems AG, Switzerland

About

Delphi library for system-oriented programming with Linux

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published