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

Post-processing scripts aren't executed on macOS. #9579

Open
2 tasks done
DavidPhillipOster opened this issue Feb 4, 2023 · 2 comments
Open
2 tasks done

Post-processing scripts aren't executed on macOS. #9579

DavidPhillipOster opened this issue Feb 4, 2023 · 2 comments

Comments

@DavidPhillipOster
Copy link

Description of the bug

Post-processing scripts aren't executed on macOS.
I expect them to execute, as documented in the help text

Post-processing scripts aren't executed on macOS.

Project file & How to reproduce

To reproduce:
on macOS, install

  1. https://github.com/DavidPhillipOster/gcodeToThumbnail/releases/download/1.0/gcodeToThumbnail (I put the executable in /usr/local/bin/ ) - verify that it works by running it from the command line. It will print a usage string.

You can compile from source if you wish.

Open any project file where you've asked it to produce a 128x128 PNG .gcode thumbnail (I've attached such a file that has that set, when run on my machine.) (See the screenshots on https://github.com/DavidPhillipOster/gcodeToThumbnail)

cat.3mf.zip

Slice and save as .gcode. Verify that the resulting .gcode file has a base64 thumbnail near the end of the file by examining it in a text editor.

Note that the .gcode file has the generic document icon when viewed in Finder.

Screenshot 2023-02-03 at 9 04 19 PM

This is the bug had /usr/local/bin/gcodeToThumbnail run as documented, then the .gcode file will have the correct thumbnail icon when viewed in Finder.

To verify, in Terminal, execute:

/usr/local/bin/gcodeToThumbnail cat_0.3mm_PLA_MK3_2h26m.gcode

Note that the file now has the correct Finder icon.

Checklist of files included above

  • Project file
  • Screenshot

Version of PrusaSlicer

Version 2.5.0+MacOS-arm64

Operating system

macOS Ventura 13.1 (22C65)

Printer model

i3 MK3

@DavidPhillipOster
Copy link
Author

After the discussion in #6322 -this #9579 is of low priority.

At least for the case I care about.

It would be better for me to write a Spotlight extension that enables the Finder to read the thumbnail out of the gcode file without changing the file, so no post processing task from PrusaSlicer is needed.

But it is still the case that post processing steps don't appear to be executed on macOS.

@ankurv2k6
Copy link

Yup - I can confirm the issue - post processing scripts dont seem as executing in 2.7.2-alpha2 either on the mac. Looks like this issue has existed for a while with no resolution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants