Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3847bc247a | ||
|
|
784d52eac4 | ||
|
|
f78406448a | ||
|
|
50b592b125 | ||
|
|
7faff1e70d | ||
|
|
c17b97608c | ||
|
|
1e1ad7be17 | ||
|
|
429c0f89b9 | ||
|
|
ad0617a7e5 | ||
|
|
df75b0fdb5 | ||
|
|
89f68fe674 |
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -3,6 +3,10 @@ name: Build
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
paths:
|
||||
- 'src/**'
|
||||
- 'build.zig'
|
||||
- 'build.zig.zon'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
18
CONTRIBUTING.md
Normal file
18
CONTRIBUTING.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# How to contribute to Zigfetch
|
||||
|
||||
## Did you find a bug?
|
||||
|
||||
- Do not open up a GitHub issue if the bug is a security vulnerability, refer to the [security policy](https://github.com/utox39/zigfetch/blob/main/SECURITY.md).
|
||||
- Ensure the bug was not already reported by searching on GitHub under [Issues](https://github.com/utox39/zigfetch/issues).
|
||||
- If you're unable to find an open issue addressing the problem, open a new one.
|
||||
|
||||
## Do you want to make some changes to the code or documentation?
|
||||
|
||||
1. Fork the repo.
|
||||
2. Create a new branch (because the `main` branch is protected).
|
||||
3. Commit and push the changes to the new branch.
|
||||
4. Open a pull request.
|
||||
|
||||
---
|
||||
|
||||
**Thank you for your contribution!**
|
||||
@@ -176,4 +176,4 @@ To change the Username and Hostname color (HEX colors only):
|
||||
|
||||
## Contributing
|
||||
|
||||
If you would like to contribute to this project just create a pull request which I will try to review as soon as possible.
|
||||
Please see [CONTIBUTING](https://github.com/utox39/zigfetch/blob/main/CONTRIBUTING.md). Thanks!
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
// This is a [Semantic Version](https://semver.org/).
|
||||
// In a future version of Zig it will be used for package deduplication.
|
||||
.version = "0.24.1",
|
||||
.version = "0.24.2",
|
||||
|
||||
// Together with name, this represents a globally unique package
|
||||
// identifier. This field is generated by the Zig toolchain when the
|
||||
|
||||
@@ -121,9 +121,8 @@ pub fn getWindowManagerInfo(allocator: std.mem.Allocator) ![]const u8 {
|
||||
defer file.close();
|
||||
|
||||
// NOTE: https://stackoverflow.com/questions/23534263/what-is-the-maximum-allowed-limit-on-the-length-of-a-process-name
|
||||
var file_buf: [16]u8 = undefined;
|
||||
const read = try file.read(&file_buf);
|
||||
const proc_name = file_buf[0..read];
|
||||
const proc_name = try utils.readFile(allocator, file, 16);
|
||||
defer allocator.free(proc_name);
|
||||
|
||||
const proc_name_trimmed = std.mem.trim(u8, proc_name, "\n");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user