Platforms to show: All Mac Windows Linux Cross-Platform
LinuxSuMBS class
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| class | Linux | MBS Linux Plugin | 16.1 | ❌ No | ❌ No | ✅ Yes | ❌ No | Desktop, Console & Web |
Uses the gksu library.
- 2 events
- event AskPassword(prompt as String, byref ErrorCode as Integer, byref ErrorMessage as String) as string
- event PasswordNoNeeded
- 14 properties
- property Alert as String
- property AlwaysAskPassword as Boolean
- property Command as String
- property Debug as Boolean
- property Description as String
- property ExitCode as Integer
- property Grab as Boolean
- property Handle as Integer
- property KeepEnvironment as Boolean
- property LastError as Integer
- property LastErrorMessage as String
- property LoginShell as Boolean
- property Message as String
- property User as String
- 4 methods
- method AskPassword(prompt as String) as String
- method ExecuteRun as boolean
- method ExecuteSu as boolean
- method ExecuteSudo as boolean
- shared method Available as boolean
- 13 constants
Error Codes
| Constant | Value | Description |
|---|---|---|
| ErrorCanceled | 11 |
The user cancelled. |
| ErrorChildFailed | 9 |
Child failed. |
| ErrorExec | 5 |
Execution failed. |
| ErrorFork | 4 |
Forking failed. |
| ErrorHelper | 1 |
The helper tool failed. |
| ErrorNoCommand | 2 |
Missing command. |
| ErrorNoPassword | 3 |
Missing password. |
| ErrorNotAllowed | 10 |
Not allowed. |
| ErrorPipe | 6 |
Pipe failed. |
| ErrorPiperead | 7 |
Pipe read error. |
| ErrorWrongAutoPass | 12 |
Wrong auto Password. |
| ErrorWrongPass | 8 |
Wrong Password |
| ErrorXauth | 0 |
XAuth failed. |
This class has no sub classes.
Blog Entries
- MBS Releases the MBS Xojo / Real Studio plug-ins in version 16.1
- MBS Xojo / Real Studio Plugins, version 16.1pr1
- Sudo on Linux
Some examples using this class:
The items on this page are in the following plugins: MBS Linux Plugin.
LinuxProcessMBS - LinuxSysInfoMBS