Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
L
live-installer
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
live-installer
Commits
e9be858b
Kaydet (Commit)
e9be858b
authored
Haz 12, 2020
tarafından
sulincix
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix bişey
üst
4cd28660
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
28 additions
and
25 deletions
+28
-25
gtk_interface.py
live-installer/frontend/gtk_interface.py
+4
-11
live-installer.xpm
live-installer/icons/live-installer.xpm
+0
-0
installer.py
live-installer/installer.py
+23
-13
distro.svg
live-installer/resources/distro.svg
+0
-0
advanced.png
live-installer/resources/icons/advanced.png
+0
-0
hdd.svg
live-installer/resources/icons/hdd.svg
+0
-0
install.png
live-installer/resources/icons/install.png
+0
-0
keyboard.png
live-installer/resources/icons/keyboard.png
+0
-0
locales.png
live-installer/resources/icons/locales.png
+0
-0
summary.png
live-installer/resources/icons/summary.png
+0
-0
time.png
live-installer/resources/icons/time.png
+0
-0
user.png
live-installer/resources/icons/user.png
+0
-0
interface.ui
live-installer/resources/interface.ui
+1
-1
mint-logo.png
live-installer/resources/mint-logo.png
+0
-0
No files found.
live-installer/frontend/gtk_interface.py
Dosyayı görüntüle @
e9be858b
...
...
@@ -304,6 +304,8 @@ class InstallerWindow:
self
.
builder
.
get_object
(
"button_next"
)
.
set_label
((
"Next"
))
# Welcome page
self
.
builder
.
get_object
(
"img_distro"
)
.
set_from_file
(
"./resources/distro.svg"
)
self
.
builder
.
get_object
(
"label_welcome1"
)
.
set_text
(
(
"Welcome to the Sulin Installer."
))
self
.
builder
.
get_object
(
"label_welcome2"
)
.
set_text
(
...
...
@@ -671,15 +673,6 @@ class InstallerWindow:
if
iter
is
not
None
:
self
.
setup
.
language
=
model
.
get_value
(
iter
,
3
)
self
.
setup
.
print_setup
()
gettext
.
translation
(
'live-installer'
,
"/usr/share/locale"
,
languages
=
[
self
.
setup
.
language
,
self
.
setup
.
language
.
split
(
'_'
)[
0
]],
fallback
=
True
)
.
install
()
# Try e.g. zh_CN, zh, or fallback to hardcoded English
try
:
self
.
i18n
()
except
:
# Best effort. Fails the first time as self.column1 doesn't exist yet.
pass
def
assign_login_options
(
self
,
checkbox
,
data
=
None
):
self
.
setup
.
autologin
=
self
.
builder
.
get_object
(
...
...
@@ -789,10 +782,10 @@ class InstallerWindow:
img
=
self
.
builder
.
get_object
(
"progress_
%
d"
%
i
)
if
i
<=
index
:
img
.
set_from_file
(
"
/usr/share
/icons/live-installer-progress-dot-on.png"
)
"
.
/icons/live-installer-progress-dot-on.png"
)
else
:
img
.
set_from_file
(
"
/usr/share
/icons/live-installer-progress-dot-off.png"
)
"
.
/icons/live-installer-progress-dot-off.png"
)
help_text
=
(
self
.
wizard_pages
[
index
]
.
help_text
)
self
.
builder
.
get_object
(
"help_label"
)
.
set_markup
(
"<big><b>
%
s</b></big>"
%
help_text
)
...
...
live-installer/icons/live-installer.xpm
deleted
100644 → 0
Dosyayı görüntüle @
4cd28660
This diff is collapsed.
Click to expand it.
live-installer/installer.py
Dosyayı görüntüle @
e9be858b
...
...
@@ -430,13 +430,11 @@ class InstallerEngine:
our_current
+=
1
self
.
update_progress
(
our_current
,
our_total
,
False
,
False
,
(
"Setting locale"
))
os
.
system
(
"echo
\"
%
s.UTF-8 UTF-8
\"
>> /target/etc/locale.gen
"
%
os
.
system
(
"echo
\"
LC_COLLATE=C
\"
> /target/etc/env.d/02locale
"
%
self
.
setup
.
language
)
self
.
do_run_in_chroot
(
"locale-gen"
)
os
.
system
(
"echo
\"\"
> /target/etc/default/locale"
)
self
.
do_run_in_chroot
(
"update-locale LANG=
\"
%
s.UTF-8
\"
"
%
self
.
setup
.
language
)
self
.
do_run_in_chroot
(
"update-locale LANG=
%
s.UTF-8"
%
os
.
system
(
"echo
\"
LC_ALL=
%
s.UTF-8
\"
>> /target/etc/env.d/02locale"
%
self
.
setup
.
language
)
os
.
system
(
"echo
\"
LANG=
%
s.UTF-8
\"
>> /target/etc/env.d/02locale"
%
self
.
setup
.
language
)
# set the timezone
...
...
@@ -451,13 +449,25 @@ class InstallerEngine:
our_current
+=
1
self
.
update_progress
(
our_current
,
our_total
,
False
,
False
,
(
"Setting keyboard options"
))
#TODO:keyboard layout support openrc
#newconsolefh = open("/etc/conf.d/keymaps", "w")
#newconsolefh.write("XKBMODEL=\"%s\"\n" % self.setup.keyboard_model)
#newconsolefh.write("keymap=\"%s\"\n" % self.setup.keyboard_layout)
#if(self.setup.keyboard_variant is not None and self.setup.keyboard_variant != ""):
# newconsolefh.write("extended_keymaps=\"%s\"\n" % self.setup.keyboard_variant)
#newconsolefh.close()
#Keyboard settings openrc
newconsolefh
=
open
(
"/etc/conf.d/keymaps"
,
"w"
)
if
not
self
.
setup
.
keyboard_layout
:
self
.
setup
.
keyboard_layout
=
"en"
if
not
self
.
setup
.
keyboard_variant
:
self
.
setup
.
keyboard_variant
=
""
newconsolefh
.
write
(
"keymap=
\"
%
s
%
s
\"\n
"
%
self
.
setup
.
keyboard_layout
,
self
.
setup
.
keyboard_variant
)
newconsolefh
.
close
()
#Keyboard settings X11
newconsolefh
=
open
(
"/etc/X11/xorg.conf.d/00-keyboard.conf"
,
"w"
)
newconsolefh
.
write
(
'Section "InputClass"'
)
newconsolefh
.
write
(
'Identifier "system-keyboard"'
)
newconsolefh
.
write
(
'MatchIsKeyboard "on"'
)
newconsolefh
.
write
(
'Option "XkbLayout" "{}"'
.
format
(
self
.
setup
.
keyboard_layout
))
newconsolefh
.
write
(
'Option "XkbModel" "{}"'
.
format
(
self
.
setup
.
keyboard_model
))
newconsolefh
.
write
(
'Option "XkbVariant" "{}"'
.
format
(
self
.
setup
.
keyboard_variant
))
newconsolefh
.
write
(
'#Option "XkbOptions" "grp:alt_shift_toggle"'
)
newconsolefh
.
write
(
'EndSection'
)
newconsolefh
.
close
()
# write MBR (grub)
print
(
" --> Configuring Grub"
)
...
...
live-installer/resources/distro.svg
0 → 100644
Dosyayı görüntüle @
e9be858b
This diff is collapsed.
Click to expand it.
live-installer/resources/icons/advanced.png
deleted
100644 → 0
Dosyayı görüntüle @
4cd28660
3.8 KB
live-installer/resources/icons/hdd.svg
deleted
100644 → 0
Dosyayı görüntüle @
4cd28660
This diff is collapsed.
Click to expand it.
live-installer/resources/icons/install.png
deleted
100644 → 0
Dosyayı görüntüle @
4cd28660
2.24 KB
live-installer/resources/icons/keyboard.png
deleted
100644 → 0
Dosyayı görüntüle @
4cd28660
2.06 KB
live-installer/resources/icons/locales.png
deleted
100644 → 0
Dosyayı görüntüle @
4cd28660
4.36 KB
live-installer/resources/icons/summary.png
deleted
100644 → 0
Dosyayı görüntüle @
4cd28660
3.83 KB
live-installer/resources/icons/time.png
deleted
100644 → 0
Dosyayı görüntüle @
4cd28660
2.67 KB
live-installer/resources/icons/user.png
deleted
100644 → 0
Dosyayı görüntüle @
4cd28660
2.59 KB
live-installer/resources/interface.ui
Dosyayı görüntüle @
e9be858b
...
...
@@ -247,7 +247,7 @@
<property
name=
"orientation"
>
vertical
</property>
<property
name=
"spacing"
>
15
</property>
<child>
<object
class=
"GtkImage"
>
<object
class=
"GtkImage"
id=
"img_distro"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"pixel_size"
>
80
</property>
...
...
live-installer/resources/mint-logo.png
deleted
100644 → 0
Dosyayı görüntüle @
4cd28660
2.55 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment