Skip to content
This repository has been archived by the owner on Aug 20, 2019. It is now read-only.

ekickx/mugshot-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

Fork of mugshot with little extra feature

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published