Skip to content

added lock for mac and linux maybe#1

Merged
OOCAZ merged 11 commits intomainfrom
dev/add-linux
Dec 6, 2025
Merged

added lock for mac and linux maybe#1
OOCAZ merged 11 commits intomainfrom
dev/add-linux

Conversation

@OOCAZ
Copy link
Copy Markdown
Owner

@OOCAZ OOCAZ commented Dec 6, 2025

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the workstation locking functionality by extracting duplicated platform-specific lock code into a new lock_workstation() function. It also adds proper Linux support with multiple screen locker fallbacks and extends CI testing to Ubuntu and macOS.

  • Introduces a dedicated lock_workstation() function to consolidate duplicated locking logic
  • Implements a fallback mechanism for Linux that tries multiple screen lockers (loginctl, xdg-screensaver, gnome-screensaver-command, dm-tool, xscreensaver-command)
  • Expands CI/CD testing matrix to include ubuntu-latest and macos-latest alongside windows-latest

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/loctight.py Refactored platform-specific lock logic into a reusable lock_workstation() function with Linux fallback support; replaced two duplicate lock code blocks with function calls
.github/workflows/tests.yml Extended test matrix to run on Ubuntu and macOS in addition to Windows

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@OOCAZ OOCAZ merged commit f5ba05b into main Dec 6, 2025
14 checks passed
@OOCAZ OOCAZ deleted the dev/add-linux branch December 6, 2025 09:22
@OOCAZ OOCAZ restored the dev/add-linux branch January 9, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants