mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-13 21:02:34 +08:00
chore: better error reporting for parameters, highlighting --help usage. fixess #303 and should improve #275
Some checks failed
CMake / build-x11 (ubuntu-22.04) (push) Has been cancelled
CMake / build-x11 (ubuntu-24.04) (push) Has been cancelled
CMake / build-x11-wayland (ubuntu-22.04) (push) Has been cancelled
CMake / build-x11-wayland (ubuntu-24.04) (push) Has been cancelled
CMake / build-wayland (ubuntu-22.04) (push) Has been cancelled
CMake / build-wayland (ubuntu-24.04) (push) Has been cancelled
Some checks failed
CMake / build-x11 (ubuntu-22.04) (push) Has been cancelled
CMake / build-x11 (ubuntu-24.04) (push) Has been cancelled
CMake / build-x11-wayland (ubuntu-22.04) (push) Has been cancelled
CMake / build-x11-wayland (ubuntu-24.04) (push) Has been cancelled
CMake / build-wayland (ubuntu-22.04) (push) Has been cancelled
CMake / build-wayland (ubuntu-24.04) (push) Has been cancelled
This commit is contained in:
parent
3c334aac29
commit
be0fc25e72
@ -1,31 +0,0 @@
|
|||||||
---
|
|
||||||
name: Background doesn't load properly
|
|
||||||
about: Use this to report backgrounds that are not loading (cannot find files, black
|
|
||||||
image, effects not working, etc)
|
|
||||||
title: "[BGFIX]"
|
|
||||||
labels: bug
|
|
||||||
assignees: Almamu
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**Wallpaper Engine Background(s)**
|
|
||||||
|
|
||||||
Link(s) to the background(s) in the steam workshop or their background ID(s).
|
|
||||||
|
|
||||||
**Console output**
|
|
||||||
|
|
||||||
When a background cannot be loaded, it's usually due to some unexpected error that is logged into the terminal. Please attach the program's output so we can properly debug it if needed.
|
|
||||||
|
|
||||||
**Screenshots**
|
|
||||||
|
|
||||||
If you have any screenshot of it working on Windows that'll help so we can compare both outputs
|
|
||||||
|
|
||||||
**Desktop (please complete the following information):**
|
|
||||||
|
|
||||||
- OS: [e.g. Arch Linux]
|
|
||||||
- Desktop Environment: [e.g. GNOME, CINNAMON, KDE...]
|
|
||||||
- Window Manager: [if in doubt, just leave it empty]
|
|
||||||
|
|
||||||
**Additional context**
|
|
||||||
|
|
||||||
Any additional information about your setup
|
|
58
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
Normal file
58
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
name: "Bug Report"
|
||||||
|
description: "Report a bug or unexpected behavior."
|
||||||
|
labels: [bug]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Please fill out this form to report a bug.
|
||||||
|
- type: input
|
||||||
|
id: summary
|
||||||
|
attributes:
|
||||||
|
label: Bug Summary
|
||||||
|
description: Briefly describe the bug.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: steps
|
||||||
|
attributes:
|
||||||
|
label: Steps to Reproduce
|
||||||
|
description: Step-by-step instructions to reproduce the bug.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: expected
|
||||||
|
attributes:
|
||||||
|
label: Expected Behavior
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
- type: textarea
|
||||||
|
id: actual
|
||||||
|
attributes:
|
||||||
|
label: Actual Behavior / Logs
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
- type: input
|
||||||
|
id: os
|
||||||
|
attributes:
|
||||||
|
label: Operating System and Version
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: de
|
||||||
|
attributes:
|
||||||
|
label: Desktop Environment (GNOME, KDE, etc.)
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: x11_wayland
|
||||||
|
attributes:
|
||||||
|
label: Display Server (X11/Wayland)
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: extra
|
||||||
|
attributes:
|
||||||
|
label: Additional Context or Screenshots
|
||||||
|
validations:
|
||||||
|
required: false
|
46
.github/ISSUE_TEMPLATE/compatibility-issue.yml
vendored
Normal file
46
.github/ISSUE_TEMPLATE/compatibility-issue.yml
vendored
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
name: "Wallpaper Compatibility Issue"
|
||||||
|
description: "Report a problem with a specific Wallpaper Engine wallpaper."
|
||||||
|
labels: [compatibility, wallpaper]
|
||||||
|
body:
|
||||||
|
- type: input
|
||||||
|
id: wallpaper
|
||||||
|
attributes:
|
||||||
|
label: Wallpaper Name, URL or ID
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: issue
|
||||||
|
attributes:
|
||||||
|
label: Describe the Issue
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: expected
|
||||||
|
attributes:
|
||||||
|
label: Expected Behavior
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
- type: textarea
|
||||||
|
id: logs
|
||||||
|
attributes:
|
||||||
|
label: Logs or Crash Output
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
- type: input
|
||||||
|
id: os
|
||||||
|
attributes:
|
||||||
|
label: Operating System and Version
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: de
|
||||||
|
attributes:
|
||||||
|
label: Desktop Environment (GNOME, KDE, etc.)
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: x11_wayland
|
||||||
|
attributes:
|
||||||
|
label: Display Server (X11/Wayland)
|
||||||
|
validations:
|
||||||
|
required: true
|
32
.github/ISSUE_TEMPLATE/feature-request.yml
vendored
Normal file
32
.github/ISSUE_TEMPLATE/feature-request.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
name: "Feature Request"
|
||||||
|
description: "Propose a new feature or enhancement."
|
||||||
|
labels: [enhancement]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Use this form to suggest new features or improvements.
|
||||||
|
- type: textarea
|
||||||
|
id: feature
|
||||||
|
attributes:
|
||||||
|
label: Describe the Feature
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: problem
|
||||||
|
attributes:
|
||||||
|
label: Problem this Feature Addresses (if any)
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
- type: textarea
|
||||||
|
id: alternatives
|
||||||
|
attributes:
|
||||||
|
label: Alternatives Considered
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
- type: textarea
|
||||||
|
id: context
|
||||||
|
attributes:
|
||||||
|
label: Additional Context or Mockups
|
||||||
|
validations:
|
||||||
|
required: false
|
38
.github/ISSUE_TEMPLATE/installation-help.yml
vendored
Normal file
38
.github/ISSUE_TEMPLATE/installation-help.yml
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
name: "Installation/Usage Help"
|
||||||
|
description: "Request help with installing or using linux-wallpaperengine."
|
||||||
|
labels: [question, support]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Need help? Fill this out so we can assist you better.
|
||||||
|
- type: textarea
|
||||||
|
id: issue
|
||||||
|
attributes:
|
||||||
|
label: What are you trying to do, and what's the problem?
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: attempted
|
||||||
|
attributes:
|
||||||
|
label: What have you tried so far?
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
- type: textarea
|
||||||
|
id: error_logs
|
||||||
|
attributes:
|
||||||
|
label: Errors or Log Output
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
- type: input
|
||||||
|
id: system
|
||||||
|
attributes:
|
||||||
|
label: OS, Desktop Environment, X11/Wayland
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: install_method
|
||||||
|
attributes:
|
||||||
|
label: Installation Method (e.g., AUR, Flatpak, build from source)
|
||||||
|
validations:
|
||||||
|
required: true
|
10
.github/ISSUE_TEMPLATE/other-issues.md
vendored
10
.github/ISSUE_TEMPLATE/other-issues.md
vendored
@ -1,10 +0,0 @@
|
|||||||
---
|
|
||||||
name: Other issues
|
|
||||||
about: Use this to report general issues with the software
|
|
||||||
title: ''
|
|
||||||
labels: ''
|
|
||||||
assignees: Almamu
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
|
|
22
.github/ISSUE_TEMPLATE/refactor.yml
vendored
Normal file
22
.github/ISSUE_TEMPLATE/refactor.yml
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
name: "Code Cleanup / Refactor"
|
||||||
|
description: "Suggest internal improvements like refactoring or technical debt cleanup."
|
||||||
|
labels: [refactor, maintenance]
|
||||||
|
body:
|
||||||
|
- type: textarea
|
||||||
|
id: what
|
||||||
|
attributes:
|
||||||
|
label: What needs improvement?
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: why
|
||||||
|
attributes:
|
||||||
|
label: Why is this necessary or beneficial?
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
- type: textarea
|
||||||
|
id: impact
|
||||||
|
attributes:
|
||||||
|
label: Potential Impact on Users
|
||||||
|
validations:
|
||||||
|
required: false
|
@ -255,10 +255,11 @@ CApplicationContext::CApplicationContext (int argc, char* argv []) :
|
|||||||
" Runs the background 2317494988 on two screens, one on HDMI-1 and the other on HDMI-2\n\n"
|
" Runs the background 2317494988 on two screens, one on HDMI-1 and the other on HDMI-2\n\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
try {
|
||||||
program.parse_known_args (argc, argv);
|
program.parse_known_args (argc, argv);
|
||||||
|
|
||||||
if (this->settings.general.defaultBackground.empty ()) {
|
if (this->settings.general.defaultBackground.empty ()) {
|
||||||
throw std::runtime_error ("No default background specified. Either --bg/-b or <background id> must be specified");
|
throw std::runtime_error ("At least one background ID must be specified");
|
||||||
}
|
}
|
||||||
|
|
||||||
this->settings.audio.volume = std::max(0, std::min (this->settings.audio.volume, 128));
|
this->settings.audio.volume = std::max(0, std::min (this->settings.audio.volume, 128));
|
||||||
@ -293,6 +294,9 @@ CApplicationContext::CApplicationContext (int argc, char* argv []) :
|
|||||||
this->settings.screenshot.take = false;
|
this->settings.screenshot.take = false;
|
||||||
this->settings.render.pauseOnFullscreen = false;
|
this->settings.render.pauseOnFullscreen = false;
|
||||||
#endif /* DEMOMODE */
|
#endif /* DEMOMODE */
|
||||||
|
} catch (const std::runtime_error& e) {
|
||||||
|
throw std::runtime_error (std::string (e.what()) + ". Use " + std::string (argv[0]) + " --help for more information");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int CApplicationContext::getArgc () const {
|
int CApplicationContext::getArgc () const {
|
||||||
|
@ -20,6 +20,7 @@ void initLogging () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main (int argc, char* argv[]) {
|
int main (int argc, char* argv[]) {
|
||||||
|
try {
|
||||||
// if type parameter is specified, this is a subprocess, so no logging should be enabled from our side
|
// if type parameter is specified, this is a subprocess, so no logging should be enabled from our side
|
||||||
bool enableLogging = true;
|
bool enableLogging = true;
|
||||||
std::string typeZygote = "--type=zygote";
|
std::string typeZygote = "--type=zygote";
|
||||||
@ -63,4 +64,8 @@ int main (int argc, char* argv[]) {
|
|||||||
delete app;
|
delete app;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
} catch (const std::exception& e) {
|
||||||
|
std::cerr << e.what () << std::endl;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user