Commit 3cea9336 authored by intrigeri's avatar intrigeri
Browse files

Update blueprint.

Patch contributed by kurono on
parent ef6b6c0e
# Linux dependencies
The current Tails Installer version (<>)
has considerable changes when compared with the upstream Fedora liveusb-creator
The current package dependencies for the Tails Installer in Linux are:
* dosfstools
* gdisk
* genisoimage
* gir1.2-glib-2.0
* gir1.2-gtk-3.0
* gir1.2-udisks-2.0
* mtools
* p7zip-full
* policykit-1
* python-configobj
* python-gi
* python-urlgrabber
* syslinux
If we list the set of requirements for each important source file then we have:
### \_\_init\_\
import gettext
if sys.platform == 'win32':
import gettext_windows
if 'linux' in sys.platform:
import gi
gi.require_version('UDisks', '2.0')
from gi.repository import UDisks, GLib
* syslinux
* sgdisk
* dd
* dosfslabel
* e2label
* extlinux
* pkexec
* mkdiskimage
* sync
from gi.repository import Gdk, GLib, Gtk
In general GTK3
from gi.repository import Gtk
if 'linux' in sys.platform:
from gi.repository import GLib
# Alternatives for Windows:
If we make a diff of the Windows class section in the "" source file,
comparing the current Tails version and the upstream version like this:
git difftool remotes/origin/master:tails_installer/ remotes/b/master:liveusb/
we can see that the changes are not so big, at least in the raw Windows tools used.
These tools are basically, the Python win32 interfaces:
import win32file, win32api, pywintypes
and set of third parties tools listed here:
There are other tools that would be possible to explore like:
As a conclusion, the biggest difference in the current Tails version is the usage
of the Python interface for GTK3 (PyGI). The tools/libraries for Windows used in
the current upstream liveusb-creator version seem in principle like the same
used for Tails right now, except for the GUI parts.
In the next section a proposed solution for porting applications using this library
for Windows is described.
# PyGI windows executable
I managed to create a native windows executable for a test Python/GI program under Windows 8.1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment