TAOSECURITY

Creating a Linux Application Using VSCodium, Cline, OpenRouter, and Claude_TAOSECURITY:8D4D967BDCCDEFAF9F1156756E796F87

Description

In March I created a Windows Application Using Visual Studio Code, Cline, OpenRouter, and Claude. This was a program that created square screen captures. The user doesn't need to manually ensure the dimensions are a square. The program makes the window grow and shrink while keeping the length equal to the height.



![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguCCVz3lbVrU6Ct1ejGqTaQgicYRU_e4E6SLCwbHJEHr5In8w5ou-hEdTwOSUu_RE2VOXnnzFwsitCoYmSlRLhvsGeybOx9WbhhLoP6zEikI_E4IRXylyvvVl1RA11ea8rVGwqPGVl4wUSOgjX1PTO5IVTwBBieLXNLwbBn6hyphenhyphenxQfazMlc2-RtRXpkxtSm/w640-h640/BejSnap-20251103001.png)



In June I created an equivalent program on Linux using VSCodium, Cline, OpenRouter, and Claude.



I provided this prompt, which I derived from the last project.



==



Create a graphical Linux application to take screen captures with the following features:


Square Region Selection: Enforces a 1:1 aspect ratio during region selection


1:1 Aspect Ratio: Ensures all captures are perfectly square


PNG Output: Saves high-quality images in PNG format


Preview: Shows the captured image before saving


Dark Mode by Default: Toggle to light theme if desired


Square Interface: The application window itself uses a square ratio


Default Save Location: Set a preferred folder for saving captures


Automatic File Naming: Uses format "BejCap-YYYYMMDD###" for organized file management

I prefer C++ with Qt.



For shortcuts use Ctrl+S to Save the current image and Esc to Cancel region selection (when in region selection mode).



I do not want to capture to clipboard.



==



I also supplied these guidelines:



Always test the project at the end to ensure it doesn't contain errors.


Don't create placeholder code unless you plan to expand on it later.


Code from A to Z rather than just small parts that don't fulfill the user's needs.


Keep project files between 300-500 lines where possible.


Don't duplicate code. Build upon existing implementations.



==




I had to install the following to enable the program development:


**sudo apt install build-essential cmake qtbase5-dev qt5-qmake qtbase5-dev-tools **



The development seemed much faster than my last project, and the result works very well.



If you'd like to try it on Linux, you can access it here: https://github.com/taosecurity/BejSnap.








Copyright 2003-2020 Richard Bejtlich and TaoSecurity (taosecurity.blogspot.com and www.taosecurity.com)
Visit Original Source

Basic Information

ID TAOSECURITY:8D4D967BDCCDEFAF9F1156756E796F87
Published Nov 4, 2025 at 00:49

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.