Skip to content

Commit 4aaf06f

Browse files
deepin-ci-robotyixinshark
authored andcommitted
sync: from linuxdeepin/dde-session-shell
Synchronize source files from linuxdeepin/dde-session-shell. Source-pull-request: linuxdeepin/dde-session-shell#33
1 parent f082bf4 commit 4aaf06f

File tree

94 files changed

+4451
-187
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+4451
-187
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ build*/
2929
tests/report/*
3030
.transifexrc
3131
.cache/
32-
32+
.cursor/
3333
# for snipe
3434
src/global_util/dbus/*

.tx/config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ file_filter = translations/dde-session-shell_<lang>.ts
88
source_file = translations/dde-session-shell_en.ts
99
source_lang = en
1010
type = QT
11+
12+
[o:linuxdeepin:p:deepin-desktop-environment:r:login-gesture]
13+
file_filter = plugins/login-gesture/translations/login-gesture_<lang>.ts
14+
source_file = plugins/login-gesture/translations/login-gesture_en.ts
15+
source_lang = en
16+
type = QT

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ set(LOCK_SRCS
260260
src/widgets/passworderrortipswidget.cpp
261261
src/widgets/passworderrortipswidget.h
262262
src/global_util/dbusconstant.h
263+
src/global_util/signal_bridge.h
263264
)
264265

265266
link_libraries(
@@ -324,8 +325,15 @@ set(GREETER_SRCS
324325
src/lightdm-deepin-greeter/logincontent.cpp
325326
src/lightdm-deepin-greeter/logintipswindow.cpp
326327
src/lightdm-deepin-greeter/sessionwidget.cpp
328+
src/global_util/signal_bridge.h
327329
)
328330

331+
if (USE_DEEPIN_WAYLAND)
332+
set(GREETER_SRCS
333+
${GREETER_SRCS}
334+
)
335+
endif(USE_DEEPIN_WAYLAND)
336+
329337
add_executable(lightdm-deepin-greeter
330338
${GREETER_SRCS}
331339
${QRCS}

configs/org.deepin.dde.lightdm-deepin-greeter.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,16 @@
301301
"description": "是否长按小眼睛显示密码,true-鼠按长按小眼睛才显示密码,false-鼠标点击一下就一直显示密码",
302302
"permissions": "readwrite",
303303
"visibility": "private"
304+
},
305+
"mfaSequence":{
306+
"value": {"userType":"","authSequence":[]},
307+
"serial": 0,
308+
"flags": ["global"],
309+
"name": "mfaSequence",
310+
"name[zh_CN]": "多因认证时控制前端按认证顺序展示UI",
311+
"description": "userType可用值,all:代表所有用户,adDomain:代表域用户,其它可选还有default、native,authSequence中的数组即代表认证类型的顺序",
312+
"permissions": "readwrite",
313+
"visibility": "private"
304314
}
305315
}
306316
}

configs/org.deepin.dde.lock.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,26 @@
281281
"description": "是否长按小眼睛显示密码,true-鼠按长按小眼睛才显示密码,false-鼠标点击一下就一直显示密码",
282282
"permissions": "readwrite",
283283
"visibility": "private"
284+
},
285+
"mfaSequence":{
286+
"value": {"userType":"","authSequence":[]},
287+
"serial": 0,
288+
"flags": ["global"],
289+
"name": "mfaSequence",
290+
"name[zh_CN]": "多因认证时控制前端按认证顺序展示UI",
291+
"description": "userType可用值,all:代表所有用户,adDomain:代表域用户,其它可选还有default、native,authSequence中的数组即代表认证类型的顺序",
292+
"permissions": "readwrite",
293+
"visibility": "private"
294+
},
295+
"enableShutdownBlackWidget":{
296+
"value": true,
297+
"serial": 0,
298+
"flags": ["global"],
299+
"name": "enableShutdownBlackWidget",
300+
"name[zh_CN]": "是否打开关机、重启黑屏界面",
301+
"description": "是否打开关机、重启黑屏界面;false:不开,true:开启。默认值为true;",
302+
"permissions": "readwrite",
303+
"visibility": "private"
284304
}
285305
}
286306
}

files/wayland/lightdm-deepin-greeter-wayland

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ device_handle(){
3333
local touchpad=$(dbus_values_get_bool "$dbus_touchpad")
3434

3535
if [ "$touchpad" = "true" ]; then
36-
dbus-send --session --dest=org.kde.KWin "$input" org.freedesktop.DBus.Properties.Set string:"org.kde.KWin.InputDevice" string:"tapToClick" variant:boolean:true
36+
dbus-send --session --print-reply --dest=org.kde.KWin "$input" org.freedesktop.DBus.Properties.Set string:"org.kde.KWin.InputDevice" string:"tapToClick" variant:boolean:true
3737
fi
3838
}
3939

interface/base_module_interface.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ class BaseModuleInterface
3838
LoginType, // 登陆插件
3939
TrayType, // 托盘插件
4040
FullManagedLoginType, // 全托管插件
41-
IpcAssistLoginType // 用于接收厂商密码插件
41+
IpcAssistLoginType, // 用于接收厂商密码插件
42+
PasswordExtendLoginType, // 密码认证扩展插件,需要两个都认证通过后
4243
};
4344

4445
/**

interface/login_module_interface.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ enum AuthType {
7575
AT_FingerVein = 1 << 5, // 指静脉
7676
AT_Iris = 1 << 6, // 虹膜
7777
AT_Passkey = 1 << 7, // 安全密钥
78+
AT_Pattern = 1 << 8, // 手势
7879
AT_PAM = 1 << 29, // PAM
7980
AT_Custom = 1 << 30, // 自定义
8081
AT_All = -1 // all
@@ -98,7 +99,9 @@ enum AuthState {
9899
AS_Ended, // 认证已结束,调用 End 之后,每种成功关闭的都会发送此信号,当某种认证类型被锁定时,也会触发此信号
99100
AS_Locked, // 认证已锁定,当认证类型锁定时,触发此信号。该信号不会给出锁定等待时间信息
100101
AS_Recover, // 设备恢复,需要调用 Start 重新开启认证,对应 AS_Exception
101-
AS_Unlocked // 认证解锁,对应 AS_Locked
102+
AS_Unlocked, // 认证解锁,对应 AS_Locked
103+
AS_Unknown, // 未知状态
104+
AS_VerifyCode, // 需要验证码
102105
};
103106

104107
/**

lupdate.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/bash
2-
lupdate ./ -ts -no-obsolete -locations none translations/dde-session-shell_en.ts
2+
lupdate ./interface ./src ./tests -ts -no-obsolete -locations none translations/dde-session-shell_en.ts
3+
cd plugins/login-gesture
4+
./lupdate.sh
5+
cd ../../
6+
37
#tx push -s -b m20 # Push the files that need to be translated
48
#tx pull -s -b m20 # Pull the translated files

plugins/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ if (DISABLE_DSS_SNIPE)
33
endif()
44
# add_subdirectory(examples)
55
# add_subdirectory(assist_login)
6+
# add_subdirectory("login-gesture")

0 commit comments

Comments
 (0)