Skip to content

Instantly share code, notes, and snippets.

View EvilSupahFly's full-sized avatar
🧙‍♂️
Trying to make Flatpak and Python play nice with Amulet

EvilSupahFly EvilSupahFly

🧙‍♂️
Trying to make Flatpak and Python play nice with Amulet
View GitHub Profile
@EvilSupahFly
EvilSupahFly / chroot_archives
Created May 19, 2025 02:13
chroot_archives
#!/bin/sh
## live-build(7) - System Build Scripts
## Copyright (C) 2006-2012 Daniel Baumann <[email protected]>
##
## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
## This is free software, and you are welcome to redistribute it
## under certain conditions; see COPYING for details.
> python -m amulet_map_editor amulet-debug
DEBUG: debug_file_access.py this line comes after "import os, pathlib, traceback, builtins, logging, platformdirs, inspect, threading, traceback" is called on line 1.
amulet_map_editor/debug_file_access.py:L186: DEBUG: start_monitoring called
DEBUG: ACCESS_LOG_FILE is /home/seann/.var/app/io.github.evilsupahfly.amulet_flatpak/.local/state/AmuletMapEditor/log/debug_file_access.log
DEBUG: FileHandler created successfully
DEBUG: Formatter set successfully
DEBUG: Handler added to logger successfully
DEBUG: _logger_ready set to True
DEBUG: start_monitoring finally block complete
DEBUG: logger.handlers = [<FileHandler /home/seann/.var/app/io.github.evilsupahfly.amulet_flatpak/.local/state/AmuletMapEditor/log/debug_file_access.log (NOTSET)>]
@EvilSupahFly
EvilSupahFly / Jesus-DnD.md
Created April 21, 2025 23:40
The Ultimate "Jesus Christ as a Playable Character in D&D" Build

This is split it into two versions: Pre-Easter Jesus (as the mortal, incarnate figure actively ministering) and Post-Easter Jesus (as the risen, glorified, divine being). Both rooted in lore, but mechanically unique.


Version 1: Pre-Easter Jesus (The Incarnate Teacher, Healer, and Prophet)

“The Word became flesh and made his dwelling among us.”
– John 1:14

Core Themes:

@EvilSupahFly
EvilSupahFly / flatpak_output.log
Last active April 21, 2025 22:31
flatpak_output.log
> flatpak list --app --columns=name,application,runtime
Name Application ID Runtime
calibre com.calibre_ebook.calibre org.freedesktop.Platform/x86_64/24.08
Flatseal com.github.tchx84.Flatseal org.gnome.Platform/x86_64/47
Blastem com.retrodev.blastem org.freedesktop.Platform/x86_64/24.08
VisualBoyAdvance-M com.vba_m.visualboyadvance-m org.freedesktop.Platform/x86_64/23.08
amulet_flatpak io.github.evilsupahfly.amulet_flatpak org.freedesktop.Platform/x86_64/24.08
Flatsweep io.github.giantpinkrobots.flatsweep org.gnome.Platform/x86_64/47
PeaZip io.github.peazip.PeaZip
app-id: io.github.evilsupahfly.amulet_flatpak
#name: Amulet Map Editor
#version: 0.10.41
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
command: amulet
finish-args:
- --device=all
@EvilSupahFly
EvilSupahFly / debug_file_access.log
Created April 6, 2025 19:12
debug_file_access.log
2025-04-06 15:06:55,619 - INFO - amulet_map_editor/debug_file_access.py: File access logging started.
Access Log file: /home/seann/.var/app/io.github.evilsupahfly.amulet_flatpak/.local/state/AmuletMapEditor/log/debug_file_access.log
2025-04-06 15:06:55,619 - INFO - amulet_map_editor/debug_file_access.py: debug_file_access successfully imported and executing.
2025-04-06 15:06:55,619 - INFO - amulet_map_editor/debug_file_access.py: open is wrapped: True
2025-04-06 15:06:55,619 - INFO - amulet_map_editor/debug_file_access.py: os.path.exists is wrapped: True
2025-04-06 15:06:55,619 - INFO - amulet_map_editor/debug_file_access.py: os.listdir is wrapped: True
@EvilSupahFly
EvilSupahFly / flatpak_debug.log
Created April 3, 2025 23:02
flatpak_debug.log
./do-fp-shell.sh amulet_map_editor
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: using fuse: 0
F: Opening system flatpak installation at path /var/lib/flatpak
F: using fuse: 0
F: Opening user flatpak installation at path /home/seann/.local/share/flatpak
F: Opening user flatpak installation at path /home/seann/.local/share/flatpak
F: Skipping parental controls check for app/io.github.evilsupahfly.amulet_flatpak/x86_64/master since parental controls are disabled globally
F: Opening user flatpak installation at path /home/seann/.local/share/flatpak
F: using fuse: 0
@EvilSupahFly
EvilSupahFly / rebuild.sh
Created March 26, 2025 05:18
rebuild.sh
#!/usr/bin/env bash
# Check if terminal supports colour output
supports_colour() {
if [ -t 1 ] && command -v tput &> /dev/null; then
local colours
colours=$(tput colors 2>/dev/null)
if [[ -n "$colours" && "$colours" -ge 8 ]]; then
return 0 # Colour support detected
fi
@EvilSupahFly
EvilSupahFly / amulet_flatpak.log
Created March 23, 2025 16:02
amulet_flatpak.log
This file has been truncated, but you can view the full file.
INFO - PyMCTranslate Version 317
_init_log() is initializing logging after setting LOG_DIR...
amulet_map_editor/__main__.py - main(): LOG_DIR is set to: /home/seann/.var/app/io.github.evilsupahfly.amulet_flatpak/.local/state/AmuletMapEditor/log
INFO - amulet_map_editor/__main__.py - _init_log: Logging already initialized. Skipping reinitialization.
INFO - amulet_map_editor/__main__.py - main(): DATA_DIR: /home/seann/.var/app/io.github.evilsupahfly.amulet_flatpak/data/AmuletMapEditor
INFO - amulet_map_editor/__main__.py - main(): CONFIG_DIR: /home/seann/.var/app/io.github.evilsupahfly.amulet_flatpak/config/AmuletMapEditor
INFO - amulet_map_editor/__main__.py - main(): CACHE_DIR: /home/seann/.var/app/io.github.evilsupahfly.amulet_flatpak/cache/AmuletMapEditor
INFO - amulet_map_editor/__main__.py - main(): LOG_DIR: /home/seann/.var/app/io.github.evilsupahfly.amulet_flatpak/.local/state/AmuletMapEditor/log
Gtk-Message: 10:28:06.690: Failed to load module "xapp-gtk3-module"
INFO - Loading level /home/seann/.minecr
@EvilSupahFly
EvilSupahFly / amulet_venv.log
Created March 20, 2025 03:15
amulet_venv.log
This file has been truncated, but you can view the full file.
(3.12.9) ⎧seann on Black-Beast - Wed 19 Mar 2025 23:11:18 EDT
⎩[~/Amulet-Flatpak-Testing/testing] python -m amulet_map_editor
INFO - PyMCTranslate Version 317
INFO - amulet_map_editor/__main__.py - __main__: Starting Amulet Map Editor...
_init_log() is initializing logging after setting LOG_DIR...
amulet_map_editor/__main__.py - main(): LOG_DIR is set to: /home/seann/.local/state/AmuletMapEditor/log
INFO - amulet_map_editor/__main__.py - _init_log: Logging already initialized. Skipping reinitialization.
INFO - amulet_map_editor/__main__.py - main(): DATA_DIR: /home/seann/.local/share/AmuletMapEditor
INFO - amulet_map_editor/__main__.py - main(): CONFIG_DIR: /home/seann/.config/AmuletMapEditor
INFO - amulet_map_editor/__main__.py - main(): CACHE_DIR: /home/seann/.cache/AmuletMapEditor