mirror of
https://codeberg.org/Ste74/manjaro-log-helper.git
synced 2026-10-29 18:45:53 +00:00
Gathers selected system logs and optionally sends them to the internet
- Python 97%
- Shell 3%
|
|
||
|---|---|---|
| locale | ||
| ui | ||
| usr/share/locale | ||
| main.py | ||
| manjaro-log-helper.desktop | ||
| mlh | ||
| mlh.svg | ||
| mlh_core.py | ||
| mlh_gui.py | ||
| README.md | ||
| screen1.png | ||
| screen2.png | ||
| screen3.png | ||
Manjaro Log Helper (Python / GTK)
A Python + GTK rewrite of the original bash + yad tool manjaro-log-helper. It collects various system logs, optionally removes personal data, and can upload the result to the dpaste.com pastebin service.
Original idea by the BigLinux team.
The graphical interface is defined in a standard GtkBuilder XML file
(ui/main.ui) so it can be designed and edited visually with
Cambalache.
Features
- Select which logs to collect (journalctl boots, Calamares installer log, systemd-analyze blame, lspci, lsusb, inxi, ...).
- Commands that need root are run through
pkexec. - Automatic removal of personal data (user names and hostname) before sharing.
- Optional upload to dpaste.com (the URL is copied to the clipboard and opened in the browser).
- GUI fully described in
ui/main.ui— open it in Cambalache to customize.
Requirements
On Manjaro (or any Arch-based distro):
sudo pacman -S python-gobject gtk4
No extra Python package is needed at all: the upload to dpaste.com uses
http.client from the standard library. Just install the GTK bindings above.
Usage
Run the application:
python3 main.py
Or make it executable and run it directly:
chmod +x main.py
./main.py
Or use the installed mlh command:
mlh
Editing the GUI with Cambalache
- Install Cambalache:
sudo pacman -S cambalache(orflatpak install ...). - Open
ui/main.uiin Cambalache. - Rearrange widgets, change labels, add new controls — the file stays a plain GtkBuilder XML.
- If you add new widgets that must trigger actions, give them a
signalhandler name (e.g.on_generate_clicked) and implement the matching method inmlh_gui.py.
Project layout
manjaro-log-helper/
├── main.py # entry point
├── mlh_core.py # backend: log collection, scrubbing, upload
├── mlh_gui.py # GtkBuilder loader + signal handlers
├── ui/
│ └── main.ui # GUI definition (Cambalache-editable)
├── requirements.txt
├── manjaro-log-helper.desktop
└── mlh # wrapper script for installation
License
GPL v3 or later.


