Commit ebcff77b authored by root's avatar root
Browse files

Modifiche per la creazione del pacchetto e inizio di sostituzione di

dati
parent a2cb7ee4
......@@ -10,9 +10,12 @@ Architecture: all
Depends: python3 (>= 3.3),
python3-gi,
python3-xapp (>= 1.0.1),
mint-info,
mint-common,
apturl | apturl-kde,
python3-cairo,
python3-gi,
gobject-introspection,
gir1.2-gtk-3.0,
timeshift,
gufw,
${misc:Depends},
Conflicts: mintassistant, mintassistant-gnome, mintassistant-kde
Replaces: mintassistant, mintassistant-gnome, mintassistant-kde
......
......@@ -46,7 +46,7 @@ class MintWelcome():
window.set_position(Gtk.WindowPosition.CENTER)
window.connect("destroy", Gtk.main_quit)
with open("/etc/linuxmint/info") as f:
with open("/etc/fuss/info") as f:
config = dict([line.strip().split("=") for line in f])
codename = config['CODENAME'].capitalize()
edition = config['EDITION'].replace('"', '')
......@@ -59,7 +59,7 @@ class MintWelcome():
architecture = "32-bit"
# distro-specific
dist_name = "Linux Mint"
dist_name = "FUSS"
if os.path.exists("/usr/share/doc/debian-system-adjustments/copyright"):
dist_name = "LMDE"
......@@ -74,15 +74,14 @@ class MintWelcome():
self.stack.set_transition_duration(150)
# Action buttons
builder.get_object("button_forums").connect("clicked", self.visit, "https://forums.linuxmint.com")
builder.get_object("button_documentation").connect("clicked", self.visit, "https://linuxmint.com/documentation.php")
builder.get_object("button_contribute").connect("clicked", self.visit, "https://linuxmint.com/getinvolved.php")
builder.get_object("button_irc").connect("clicked", self.visit, "irc://irc.spotchat.org/linuxmint-help")
builder.get_object("button_forums").connect("clicked", self.visit, "https://www.fuss.bz.it/page/desk/")
builder.get_object("button_documentation").connect("clicked", self.visit, "https://www.fuss.bz.it/page/doc/")
builder.get_object("button_contribute").connect("clicked", self.visit, "https://gitlab.fuss.bz.it/explore")
builder.get_object("button_codecs").connect("clicked", self.visit, "apt://mint-meta-codecs?refresh=yes")
builder.get_object("button_new_features").connect("clicked", self.visit, new_features)
builder.get_object("button_release_notes").connect("clicked", self.visit, release_notes)
builder.get_object("button_mintupdate").connect("clicked", self.launch, "mintupdate")
builder.get_object("button_mintinstall").connect("clicked", self.launch, "mintinstall")
builder.get_object("button_mintinstall").connect("clicked", self.launch, "synaptic")
builder.get_object("button_timeshift").connect("clicked", self.pkexec, "timeshift-gtk")
builder.get_object("button_mintdrivers").connect("clicked", self.pkexec, "driver-manager")
builder.get_object("button_gufw").connect("clicked", self.launch, "gufw")
......@@ -160,36 +159,9 @@ class MintWelcome():
checkbox.set_active(True)
checkbox.connect("toggled", self.on_button_toggled)
box.pack_end(checkbox)
scale = window.get_scale_factor()
self.color = "green"
self.dark_mode = False
# Use HIDPI pictures if appropriate
if scale == 1:
surface = self.surface_for_path("/usr/share/linuxmint/mintwelcome/legacy.png", scale)
builder.get_object("img_legacy").set_from_surface(surface)
surface = self.surface_for_path("/usr/share/linuxmint/mintwelcome/modern.png", scale)
builder.get_object("img_modern").set_from_surface(surface)
else:
surface = self.surface_for_path("/usr/share/linuxmint/mintwelcome/legacy-hidpi.png", scale)
builder.get_object("img_legacy").set_from_surface(surface)
surface = self.surface_for_path("/usr/share/linuxmint/mintwelcome/modern-hidpi.png", scale)
builder.get_object("img_modern").set_from_surface(surface)
path = "/usr/share/linuxmint/mintwelcome/colors/"
if scale == 2:
path = "/usr/share/linuxmint/mintwelcome/colors/hidpi/"
for color in ["green", "aqua", "blue", "brown", "grey", "orange", "pink", "purple", "red", "sand", "teal"]:
builder.get_object("img_" + color).set_from_surface(self.surface_for_path("%s/%s.png" % (path, color), scale))
builder.get_object("button_" + color).connect("clicked", self.on_color_button_clicked, color)
builder.get_object("switch_dark").connect("state-set", self.on_dark_mode_changed)
window.set_default_size(800, 500)
window.show_all()
def surface_for_path(self, path, scale):
pixbuf = GdkPixbuf.Pixbuf.new_from_file(path)
......
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