-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add more built-in variables: A_ScreenWidth, A_ScreenHeight, A_UserNam…
…e, A_IsAdmin, A_ComputerName
- Loading branch information
Showing
4 changed files
with
30 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Place for syntax problems, workaround, missing stdlib methods etc. | ||
# Every entry needs to be explained and should be avoided whenever possible. | ||
|
||
lib LibC | ||
# Query user name: https://stackoverflow.com/q/67591891 | ||
fun getuid : UidT | ||
end | ||
|
||
class Hacks | ||
def self.username | ||
System::User.find_by(id: LibC.getuid.to_s).username | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters