Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tails
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
952
Issues
952
List
Boards
Labels
Service Desk
Milestones
Merge Requests
10
Merge Requests
10
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tails
tails
Commits
8c270a8b
Commit
8c270a8b
authored
Jan 29, 2020
by
segfault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Greeter: Refactor: Use separate locale settings files
parent
a8cbf4ca
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
22 deletions
+8
-22
config/chroot_local-includes/etc/gdm3/PostLogin/Default
config/chroot_local-includes/etc/gdm3/PostLogin/Default
+8
-4
config/chroot_local-includes/usr/lib/python3/dist-packages/tailsgreeter/config.py
...udes/usr/lib/python3/dist-packages/tailsgreeter/config.py
+0
-3
config/chroot_local-includes/usr/lib/python3/dist-packages/tailsgreeter/greeter.py
...des/usr/lib/python3/dist-packages/tailsgreeter/greeter.py
+0
-7
config/chroot_local-includes/usr/lib/python3/dist-packages/tailsgreeter/settings/localization_settings.py
...t-packages/tailsgreeter/settings/localization_settings.py
+0
-8
No files found.
config/chroot_local-includes/etc/gdm3/PostLogin/Default
View file @
8c270a8b
...
...
@@ -7,8 +7,10 @@
# =====
#
# * /etc/live/config.d/username.conf : $LIVE_USERNAME
# * /var/lib/gdm3/settings/tails.locale : $TAILS_LOCALE_NAME, $TAILS_XKBMODEL,
# $TAILS_XKBLAYOUT, $TAILS_XKBVARIANT, $TAILS_XKBOPTIONS, $CODESET
# * /var/lib/gdm3/settings/tails.language: $TAILS_LOCALE_NAME
# * /var/lib/gdm3/settings/tails.formats: $TAILS_FORMATS
# * /var/lib/gdm3/settings/tails.keyboard: $TAILS_XKBMODEL,
# $TAILS_XKBLAYOUT, $TAILS_XKBVARIANT, $TAILS_XKBOPTIONS
# * /var/lib/gdm3/settings/tails.password : $TAILS_USER_PASSWORD
# For whatever reason, /usr/sbin (needed by at least chpasswd)
...
...
@@ -75,8 +77,10 @@ log "tails-unblock-network has exited (status=$?)."
### Localization
# Import locale name
.
/var/lib/gdm3/settings/tails.locale
||
log_n_exit
"Locale file not found."
# Import locale settings
.
/var/lib/gdm3/settings/tails.language
||
log_n_exit
"Language settings file not found."
.
/var/lib/gdm3/settings/tails.formats
||
log_n_exit
"Formats settings file not found."
.
/var/lib/gdm3/settings/tails.keyboard
||
log_n_exit
"Keyboard settings file not found."
if
[
-z
"
${
TAILS_LOCALE_NAME
}
"
]
;
then
log_n_exit
"Locale variable not found."
fi
...
...
config/chroot_local-includes/usr/lib/python3/dist-packages/tailsgreeter/config.py
View file @
8c270a8b
...
...
@@ -44,9 +44,6 @@ formats_setting_path = os.path.join(settings_dir, 'tails.formats')
# File where the session keyboard setting is stored
keyboard_setting_path
=
os
.
path
.
join
(
settings_dir
,
'tails.keyboard'
)
# File where the above locale related settings are stored concatenated
locale_setting_path
=
os
.
path
.
join
(
settings_dir
,
'tails.locale'
)
# File where the session sudo password is stored
admin_password_path
=
os
.
path
.
join
(
settings_dir
,
'tails.password'
)
...
...
config/chroot_local-includes/usr/lib/python3/dist-packages/tailsgreeter/greeter.py
View file @
8c270a8b
...
...
@@ -103,13 +103,6 @@ class GreeterApplication(object):
def
login
(
self
):
"""Login GDM to the server"""
logging
.
debug
(
"login called"
)
# Apply settings
# We now apply all settings immediately when they are
# changed. The only thing that still happens here is
# concatenating the locale settings files.
self
.
localisationsettings
.
apply_to_upcoming_session
()
self
.
mainwindow
.
hide
()
self
.
gdmclient
.
do_login
()
...
...
config/chroot_local-includes/usr/lib/python3/dist-packages/tailsgreeter/settings/localization_settings.py
View file @
8c270a8b
...
...
@@ -51,11 +51,3 @@ class LocalisationSettings(object):
if
self
.
_usermanager_loaded_cb
:
self
.
_usermanager_loaded_cb
()
def
apply_to_upcoming_session
(
self
):
with
open
(
tailsgreeter
.
config
.
locale_setting_path
,
'w'
)
as
outfile
:
for
path
in
(
tailsgreeter
.
config
.
language_setting_path
,
tailsgreeter
.
config
.
formats_setting_path
,
tailsgreeter
.
config
.
keyboard_setting_path
):
with
open
(
path
)
as
infile
:
outfile
.
write
(
infile
.
read
())
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