Mike S.
02/12/2025, 3:05 PMUnthread
02/12/2025, 4:09 PMMike S.
02/12/2025, 4:09 PMUnthread
02/12/2025, 4:13 PMMike S.
02/12/2025, 4:21 PMUnthread
02/12/2025, 4:23 PMMike S.
02/12/2025, 4:24 PMKathy Satterlee
02/12/2025, 6:42 PMMike S.
02/12/2025, 6:43 PMKathy Satterlee
02/12/2025, 7:05 PMWITH local_users AS (
SELECT
GROUP_CONCAT (username, ', ') AS user_list
FROM users
WHERE type <> 'special'
AND shell NOT LIKE '%/false'
AND shell NOT LIKE '%/nologin'
AND shell NOT LIKE '%/shutdown'
AND shell NOT LIKE '%/halt'
AND username NOT LIKE '%$'
)
SELECT bundle_executable,
datetime(last_opened_time, 'unixepoch') AS last_opened_time,
user_list
FROM apps
JOIN local_users
WHERE apps.last_opened_time > strftime('%s', 'now', '-7 days');
Mike S.
02/12/2025, 7:10 PMMike S.
02/12/2025, 7:13 PMKathy Satterlee
02/12/2025, 7:16 PM