Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add flatpack hack #888

Open
wants to merge 15 commits into
base: Ender3V2S1-Released
Choose a base branch
from

Conversation

radiden
Copy link

@radiden radiden commented Apr 24, 2023

Description

A hack that allows people using PrusaSlicer in flatpak generate previews using the python binary on their host system.

Also requires an edit of this part of the wiki: https://github.com/mriscoc/Ender3V2S1/wiki/How-to-generate-a-gcode-preview#for-prusasuper-slicer

### Flatpak on Linux

Since the flatpak build of PrusaSlicer includes `python` inside, but it lacks `Pillow` or `pip`, you can run the python script outside of the flatpak's sandbox on your host system (keep in mind this completely kills the security benefits of flatpak's sandboxing for the script you are running).

Open Flatseal (install using `flatpak install com.github.tchx84.Flatseal` if you don't have it installed), select PrusaSlicer on the sidebar and scroll down until you see Session Bus, there you will need to press the "+" button and add `org.freedesktop.Flatpak` to the list.

![image](https://user-images.githubusercontent.com/28237353/234108052-7fd75083-4d2d-4053-bcbd-818f8d180012.png)

After that make sure to restart PrusaSlicer, go into settings, and put `flatpak-spawn --env=FLATPAK=true --host /path/to/python3 /path/to/script.py ` in Post-processing scripts. You still need to install Pillow on your system (either use your distribution's package manager or pip).

Requirements

Benefits

Allows people using PrusaSlicer in flatpak on Linux to generate previews.

Configurations

Related Issues

mriscoc and others added 15 commits March 12, 2023 12:54
- Fix mriscoc#742
- Increased the number of sorted files to 50
- Preview works in DWIN and DACAI screens (selected automatically, S1 F4 preview supports only DACAI screens in the precompiled firmware)
- Fix C125 issue: mriscoc#667
- Power outage recovery can be enabled/disabled in tune menu
- Improved power outage recovery
- Added Extrude 100 mm to Move menu for aid with extruder calibration
- Optimize print percent and remain time to use Marlin's processing
- Decrease HOTEND_IDLE_MIN_TRIGGER to 150
- Removed forcing automatic cool down and motor disable
- Axes are not immediately disabled after abort print, now using timeout.
- Allows enable/disable file list sorting if MEDIASORT_MENU_ITEM is defined
- Enable/Disable tune menu items: RUNOUT_TUNE_ITEM, PLR_TUNE_ITEM, JD_TUNE_ITEM, ADVK_TUNE_ITEM
- Use LCD_BED_TRAMMING settings for bed tramming
- Some fixes in source code for special configurations
- Several minor fixes
- Marlin'sFix UBL 'G29 J' mesh tilt (#25453)
- Marlin's Enhanced IS and LA
- Marlin's Fix FastPWM calculations (#25343)
- Marlin's AVOID_OBSTACLES for UBL (#25256)
- and many more fixes from latest Marlin's bugfix 2.1.x
@mriscoc mriscoc added the enhancement New feature or request label May 1, 2023
@mriscoc mriscoc force-pushed the Ender3V2S1-Released branch from 229ea2d to 3d74ebc Compare May 22, 2023 16:42
@mriscoc
Copy link
Owner

mriscoc commented Jul 25, 2023

I like this enhancement but I prefer not to merge and leave it available as a reference for advanced users.

@mriscoc mriscoc force-pushed the Ender3V2S1-Released branch from 5496c1d to 6ce3545 Compare August 5, 2023 12:13
@mriscoc mriscoc added user contribution Contributions from users and removed enhancement New feature or request labels Aug 10, 2023
@mriscoc mriscoc force-pushed the Ender3V2S1-Released branch from d62a328 to 437e7d6 Compare August 14, 2023 12:39
@mriscoc mriscoc force-pushed the Ender3V2S1-Released branch from b4d84f7 to c720172 Compare December 2, 2023 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user contribution Contributions from users
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants