Giter VIP home page Giter VIP logo

mugshot-git's Introduction

Archived

Since mugshot repo hase been moved to github, I want to archive this repo. And contibute to that repo instead. .

About

Mugshot is a lightweight user configuration utility that allows you to easily update personal user details. The original repo is at https://launchpad.net/mugshot

Difference

For now the difference from recent mugshot(0.4.1) just is:

  • Circle crop

circle_crop

TODO

  • Add feature to move cropped area
  • Add feature to zoom cropped area

Build and Install

There will two ways to install this program. System (wide) install and virtualenv install

Dependencies:

  • chfn,
  • python3-gi,
  • python3-pexpect,
  • python3-dbus,
  • python3-cairo
  • gstreamer1.0-plugins-good, (optional)
  • gstreamer1.0-tools, (optional)
  • gir1.2-cheese-3.0, (optional)
  • gir1.2-gtkclutter-1.0, (optional)

System Install

  • First install all the dependencies
  • Clone this repo
git clone https://github.com/ekickx/mugshot-git.git
  • Enter directory
cd mugshot-git
  • Build and install
python3 setup.py build
sudo python3 setup.py install

NOTE: If you get the following error:

(mugshot:22748): GLib-GIO-ERROR **: Settings schema 'apps.mugshot' is not installed

be sure to copy data/glib-2.0/schemas/apps.mugshot.gschema.xml to either:

/usr/share/glib-2.0/schemas, or

/usr/local/share/glib-2.0/schemas

and run glib-compile-schemas on that directory before running.

Virtual Environment Install (Recommended)

Virtualenv is a tool which allows us to make isolated python environments. It prevents mugshot to break your system if something goes wrong

  • First install virtualenv and pip
sudo apt install virtualenv python3-virtualenv python3-pip
  • Clone this repo
git clone https://github.com/ekickx/mugshot-git.git
  • Enter directory
cd mugshot-git
  • Create and activate virtualenv
virtualenv -p python3 virtual_env
source virtual_env/bin/activate
  • Install the dependency(distutils)
wget https://launchpadlibrarian.net/236120080/python-distutils-extra-2.39.tar.gz
tar -xvzf python-distutils-extra-2.39.tar.gz
python python-distutils-extra-2.39/setup.py build
python python-distutils-extra-2.39/setup.py install
rm -r python-distutils-extra-2.39
  • Install the rest dependencies
pip install pygobject pexpect dbus-python
  • Build and install
python setup.py build
python setup.py install
  • To run the program type
/path_to_virtualenv/bin/mugshot

Uninstall

System install

sudo python setup.py install --record files.txt  
xarg sudo rm -rf < files.txt

Virtualenv install

You just need to remove virtualenv folder to uninstall

rm -r /path_to_virtualenv/

mugshot-git's People

Contributors

ekickx avatar

Stargazers

 avatar

Watchers

 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.