GithubHelp home page GithubHelp logo

smunkel / stl-thumbnailer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mlab-project/stl-thumbnailer

0.0 0.0 0.0 81 KB

Shows thumbnails of STL files in Nautilus file browser

License: GNU General Public License v3.0

Python 100.00%

stl-thumbnailer's Introduction

stl-thumbnailer

Shows thumbnails of STL files in Nautilus file browser. The sources are based on linux nautilus stl thumbnailer :)

STL preview of folder

Install

Install OpenSCAD

This project use OpenSCAD for thumbnails preview. You must install OpenSCAD before using it.

Install stl-thumbnailer

clone from repository

git clone https://github.com/MLAB-project/stl-thumbnailer.git
cd stl-thumbnailer

sudo cp stl_thumb.py /usr/local/bin/
sudo chmod a+x /usr/local/bin/stl_thumb.py
sudo cp stl.thumbnailer /usr/share/thumbnailers/
cp stl.xml ~/.local/share/mime/packages/

(note that it's also possible to keep files in the current dir, and only make symlinks. In that case, you'll have to edit stl.thumbnailer file and adapt the Exec= line to make it point to actual directory)

After that you should update MIME database by runnig following commands: (adapt to your Linux distribution)

  • update mime database :

    update-mime-database ~/.local/share/mime/
    sudo update-mime
    
  • clear thumbnails cache :

    rm -rf ~/.cache/thumbnails/*
    
  • refresh (F5 or crtl-r) Nautilus showing a folder containing some stl files

Now the STL thumbnails should show-up. If not, you can try:

  • close Nautilus :

    killall nautilus
    
  • and start it again

  • in last hope, you can try to log out and login to the desktop

Thumbnails preview from OpenSCAD files

If you looking for an preview generated from .scad files you could check OpenSCAD Thumbnailer for Gnome but computing power required for rendering more complicated scad model could be prohibitive to use this approach.

stl-thumbnailer's People

Contributors

brunetton avatar kaklik avatar nmaggioni avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.