Updated comments, TODO.txt -> TODO.md + more

This commit is contained in:
Sveinbjorn Thordarson 2023-02-18 16:49:36 +00:00
parent e3059ef782
commit a14b2c7f04
8 changed files with 20 additions and 21 deletions

1
.gitignore vendored
View File

@ -19,3 +19,4 @@ xcuserdata
*.xcworkspace
dsa_priv.pem
.xcbkptlist
sparkle/update_appcast.sh

View File

@ -95,7 +95,7 @@
F442E0771EA7DD0D00BAD80C /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Sparkle.framework; path = sparkle/Sparkle.framework; sourceTree = "<group>"; };
F44FC67225AD5EA200BC72F5 /* macos.yml */ = {isa = PBXFileReference; lastKnownFileType = text.yaml; name = macos.yml; path = .github/workflows/macos.yml; sourceTree = "<group>"; };
F47B45351EE74F2C00D79DFF /* Credits.rtf */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.rtf; path = Credits.rtf; sourceTree = "<group>"; };
F47B453F1EF82AC200D79DFF /* TODO.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = TODO.txt; sourceTree = "<group>"; };
F47B453F1EF82AC200D79DFF /* TODO.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = TODO.md; sourceTree = "<group>"; };
F48BB5B924732C2C00B569F6 /* sloth_screenshot3.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = sloth_screenshot3.jpg; sourceTree = "<group>"; };
F49B28AC1E858FAC00FA6716 /* sloth_screenshot2.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = sloth_screenshot2.jpg; sourceTree = "<group>"; };
F4A8B5CD222DB5280049FA51 /* Makefile */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.make; path = Makefile; sourceTree = "<group>"; };
@ -138,7 +138,7 @@
F44FC67225AD5EA200BC72F5 /* macos.yml */,
F4A8B5CD222DB5280049FA51 /* Makefile */,
F4F1D8A01C7623AF00945D3E /* README.md */,
F47B453F1EF82AC200D79DFF /* TODO.txt */,
F47B453F1EF82AC200D79DFF /* TODO.md */,
F4A9D5EE206A68BC0069B2B6 /* LICENSE.txt */,
F435320D2558EFC800AF00BD /* Source */,
F438712713402CDD00B51A5E /* Resources */,

12
TODO.md Normal file
View File

@ -0,0 +1,12 @@
# TODO for Sloth 3.4
* Show full command (w/args) for process (ala ps -ef) in Info Panel
* Highlight matching part of string when filtering (option in filter field popup)
* Store authentication privileges and use them to run command line tool "/usr/bin/file"
* Show Path Control w. selected path at bottom of table view when item selected
* Add tests for lsof output parsing
* Click on connected process f. pipes to select and show info of that process
# TODO for Sloth 3.3
* Always (re)select "General" tab when Preferences are shown

View File

@ -1,11 +0,0 @@
TODO for Sloth 3.4
* Show full command (w/args) for process (ala ps -ef) in Info Panel
* Highlight matching part of string when filtering (option in filter field popup)
* Store authentication privileges and use them to run command line tool "/usr/bin/file"
* Show Path Control w. selected path at bottom of table view when item selected
* Add tests for lsof output parsing
* Click on connected process f. pipes to select and show info of that process
TODO for Sloth 3.3
* ???

View File

@ -382,7 +382,7 @@
// }
p[@"psn"] = [ProcessUtils carbonProcessSerialNumberForPID:pid];
// On Mac OS X, lsof truncates process names that are longer than
// On macOS, lsof truncates process names that are longer than
// 32 characters since it uses libproc. We can do better than that.
if ([DEFAULTS boolForKey:@"friendlyProcessNames"]) {
p[@"pname"] = [ProcessUtils macProcessNameForPID:pid];

View File

@ -120,7 +120,7 @@
[[window standardWindowButton:NSWindowDocumentIconButton] setImage:[NSApp applicationIconImage]];
// Hide Authenticate button & menu item if AuthorizationExecuteWithPrivileges
// function is not available in this version of Mac OS X
// function is not available in this version of macOS
if ([STPrivilegedTask authorizationFunctionAvailable]) {
NSImage *lockIcon = [IconUtils imageNamed:@"Locked"];
[authenticateButton setImage:lockIcon];

View File

@ -108,7 +108,7 @@
return nil;
}
// Some processes on Mac OS X have a Carbon Process Manager
// Some processes on macOS have a Carbon Process Manager
// Serial Number (PSN) in addition to a PID
+ (NSString *)carbonProcessSerialNumberForPID:(pid_t)pid {
ProcessSerialNumber psn;
@ -124,7 +124,7 @@
// This function returns process name truncated to 32 characters
// This is a limitation with libproc on Mac OS X
// This is a limitation with libproc on macOS
+ (NSString *)procNameForPID:(pid_t)pid {
char name[1024];
if (proc_name(pid, name, sizeof(name)) > 0) {
@ -134,7 +134,7 @@
return nil;
}
// This is the method used by the Mac OS X 'ps' tool
// This is the method used by the macOS 'ps' tool
// Adapted from getproclline() in print.c in the 'ps'
// codebase, which is part of Apple's adv_cmds package
// See: https://opensource.apple.com/tarballs/adv_cmds/

View File

@ -1,3 +0,0 @@
#!/bin/sh
scp SlothAppcast.xml root@sveinbjorn.org:/www/sveinbjorn/html/files/appcasts/SlothAppcast.xml