Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
# SPDX-FileCopyrightText: 2023 - 2026 UnionTech Software Technology Co., Ltd.
#
# SPDX-License-Identifier: GPL-3.0-or-later

Expand Down Expand Up @@ -100,3 +100,7 @@ file(GLOB TS_FILES "translations/*.ts")
qt_add_translation(QM_FILES ${TS_FILES})
add_custom_target(dde-session-ui_language ALL DEPENDS ${QM_FILES})
install(FILES ${QM_FILES} DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/translations)

#----------------------------install desktop files and icons--------------------
file(GLOB DESKTOP_FILES ${CMAKE_SOURCE_DIR}/misc/applications/*.desktop)
install(FILES ${DESKTOP_FILES} DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
2 changes: 1 addition & 1 deletion REUSE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ SPDX-FileCopyrightText = "UnionTech Software Technology Co., Ltd."
SPDX-License-Identifier = "GPL-3.0-or-later"

[[annotations]]
path = ["dde-osd/files/dde-osd.desktop", "deepin-login-reminder/deepin-login-reminder.desktop", "deepin-login-reminder/dconf/org.deepin.login-reminder.json"]
path = ["dde-osd/files/dde-osd.desktop", "deepin-login-reminder/deepin-login-reminder.desktop", "deepin-login-reminder/dconf/org.deepin.login-reminder.json", "misc/applications/*.desktop"]
precedence = "aggregate"
SPDX-FileCopyrightText = "UnionTech Software Technology Co., Ltd."
SPDX-License-Identifier = "GPL-3.0-or-later"
Expand Down
5 changes: 4 additions & 1 deletion dde-blackwidget/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2015 - 2022 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2015 - 2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand Down Expand Up @@ -64,6 +64,9 @@ int main(int argc, char *argv[])
}

QApplication a(argc, argv);
a.setOrganizationName("deepin");
a.setApplicationName("dde-blackwidget");
a.setDesktopFileName(QStringLiteral("org.deepin.dde.blackwidget"));

DCORE_USE_NAMESPACE::Dtk::Core::DLogManager::registerConsoleAppender();

Expand Down
1 change: 1 addition & 0 deletions dde-bluetooth-dialog/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ int main(int argc, char *argv[])
DApplication app(argc, argv);
app.setOrganizationName("deepin");
app.setApplicationName("dde-bluetooth-dialog");
app.setDesktopFileName(QStringLiteral("org.deepin.dde.bluetooth-dialog"));
QTranslator translator;
if (translator.load(QLocale::system(), "dde-session-ui", "_", "/usr/share/dde-session-ui/translations")) {
app.installTranslator(&translator);
Expand Down
4 changes: 3 additions & 1 deletion dde-hints-dialog/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2020 - 2022 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2020 - 2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand All @@ -20,7 +20,9 @@ const int HINT_CONTENT = 2;
int main(int argc, char *argv[])
{
DApplication a(argc, argv);
a.setOrganizationName("deepin");
a.setApplicationName("dde-hints-dialog");
a.setDesktopFileName(QStringLiteral("org.deepin.dde.hints-dialog"));
a.setApplicationVersion("1.0");
a.setQuitOnLastWindowClosed(true);

Expand Down
3 changes: 3 additions & 0 deletions dde-license-dialog/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ int main(int argc, char *argv[])
{
qputenv("DSG_APP_ID", "org.deepin.dde.license-dialog");
DApplication a(argc, argv);
a.setOrganizationName("deepin");
a.setApplicationName("dde-license-dialog");
a.setDesktopFileName(QStringLiteral("org.deepin.dde.license-dialog"));

a.loadTranslator();

Expand Down
5 changes: 4 additions & 1 deletion dde-lowpower/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2015 - 2022 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2015 - 2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand Down Expand Up @@ -28,6 +28,9 @@ DWIDGET_USE_NAMESPACE
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
a.setOrganizationName("deepin");
a.setApplicationName("dde-lowpower");
a.setDesktopFileName(QStringLiteral("org.deepin.dde.lowpower"));

QTranslator translator;
if (translator.load(QLocale::system(), "dde-session-ui", "_", "/usr/share/dde-session-ui/translations")) {
Expand Down
3 changes: 2 additions & 1 deletion dde-pixmix/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2011 - 2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand Down Expand Up @@ -74,6 +74,7 @@ int main(int argc, char *argv[])

a.setOrganizationName("deepin");
a.setApplicationName("dde-pixmix");
a.setDesktopFileName(QStringLiteral("org.deepin.dde.pixmix"));

DLogManager::registerConsoleAppender();
DLogManager::registerJournalAppender();
Expand Down
3 changes: 2 additions & 1 deletion dde-suspend-dialog/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2016 - 2022 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2016 - 2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand All @@ -16,6 +16,7 @@ int main(int argc, char *argv[])
DApplication app(argc, argv);
app.setOrganizationName("deepin");
app.setApplicationName("dde-suspend-dialog");
app.setDesktopFileName(QStringLiteral("org.deepin.dde.suspend-dialog"));

QTranslator translator;
if (translator.load(QLocale::system(), "dde-session-ui", "_", "/usr/share/dde-session-ui/translations")) {
Expand Down
15 changes: 13 additions & 2 deletions dde-touchscreen-dialog/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2022 - 2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand All @@ -21,6 +21,9 @@ using namespace org::deepin::dde;
int main(int argc, char *argv[])
{
DApplication app(argc, argv);
app.setOrganizationName("deepin");
app.setApplicationName("dde-touchscreen-dialog");
app.setDesktopFileName(QStringLiteral("org.deepin.dde.touchscreen-dialog"));
app.setQuitOnLastWindowClosed(false);
app.setQuitOnLastWindowClosed(true);

Expand Down Expand Up @@ -49,7 +52,15 @@ int main(int argc, char *argv[])
return -1;
}

TouchscreenSetting s(posArguments.first());
// 如果该触摸设备已被关联到屏幕,则不再弹出选择窗口
const QString &touchUUID = posArguments.first();
const auto touchMap = display.touchMap();
if (touchMap.contains(touchUUID)) {
qDebug() << "touchscreen already associated:" << touchUUID << "->" << touchMap[touchUUID];
return 0;
}
Comment thread
sourcery-ai[bot] marked this conversation as resolved.

TouchscreenSetting s(touchUUID);
#if (defined QT_DEBUG) && (defined CHECK_ACCESSIBLENAME)
AccessibilityCheckerEx checker;
checker.setOutputFormat(DAccessibilityChecker::FullFormat);
Expand Down
4 changes: 3 additions & 1 deletion dde-warning-dialog/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2015 - 2022 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2015 - 2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand Down Expand Up @@ -29,7 +29,9 @@ int main(int argc, char *argv[])
}

DApplication a(argc, argv);
a.setOrganizationName("deepin");
a.setApplicationName("dde-warning-dialog");
a.setDesktopFileName(QStringLiteral("org.deepin.dde.warning-dialog"));
a.setApplicationVersion("1.0");
a.setQuitOnLastWindowClosed(true);

Expand Down
3 changes: 2 additions & 1 deletion dde-welcome/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2011 - 2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand All @@ -25,6 +25,7 @@ int main(int argc, char *argv[])
DApplication app(argc, argv);
app.setOrganizationName("deepin");
app.setApplicationName("dde-welcome");
app.setDesktopFileName(QStringLiteral("org.deepin.dde.welcome"));

if (!app.setSingleInstance(app.applicationName(), DApplication::UserScope))
return -1;
Expand Down
4 changes: 3 additions & 1 deletion dde-wm-chooser/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2011 - 2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand Down Expand Up @@ -47,7 +47,9 @@ void selectNormalModel(QString qPath)
int main(int argc, char *argv[])
{
DApplication a(argc, argv);
a.setOrganizationName("deepin");
a.setApplicationName("deepin-wm-chooser");
a.setDesktopFileName(QStringLiteral("org.deepin.dde.wm-chooser"));

QTranslator translator;
if (translator.load(QLocale::system(), "dde-session-ui", "_", "/usr/share/dde-session-ui/translations")) {
Expand Down
11 changes: 11 additions & 0 deletions misc/applications/org.deepin.dde.blackwidget.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Name=Deepin Black Widget
Comment=Deepin black screen overlay
Icon=deepin-dde
Exec=/bin/false
TryExec=/bin/false
NoDisplay=true
Terminal=false
StartupNotify=false
Categories=System;
11 changes: 11 additions & 0 deletions misc/applications/org.deepin.dde.bluetooth-dialog.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Name=Deepin Bluetooth Dialog
Comment=Deepin Bluetooth pairing dialog
Icon=deepin-dde
Exec=/bin/false
TryExec=/bin/false
NoDisplay=true
Terminal=false
StartupNotify=false
Categories=System;
11 changes: 11 additions & 0 deletions misc/applications/org.deepin.dde.hints-dialog.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Name=Deepin Hints Dialog
Comment=Deepin hints dialog
Icon=deepin-dde
Exec=/bin/false
TryExec=/bin/false
NoDisplay=true
Terminal=false
StartupNotify=false
Categories=System;
11 changes: 11 additions & 0 deletions misc/applications/org.deepin.dde.license-dialog.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Name=Deepin License Dialog
Comment=Deepin license agreement dialog
Icon=deepin-dde
Exec=/bin/false
TryExec=/bin/false
NoDisplay=true
Terminal=false
StartupNotify=false
Categories=System;
11 changes: 11 additions & 0 deletions misc/applications/org.deepin.dde.lowpower.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Name=Deepin Low Power
Comment=Deepin low power overlay
Icon=deepin-dde
Exec=/bin/false
TryExec=/bin/false
NoDisplay=true
Terminal=false
StartupNotify=false
Categories=System;
11 changes: 11 additions & 0 deletions misc/applications/org.deepin.dde.pixmix.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Name=Deepin Pixmix
Comment=Deepin image color processing tool
Icon=deepin-dde
Exec=/bin/false
TryExec=/bin/false
NoDisplay=true
Terminal=false
StartupNotify=false
Categories=System;
11 changes: 11 additions & 0 deletions misc/applications/org.deepin.dde.reset-password-dialog.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Name=Deepin Reset Password Dialog
Comment=Deepin password reset dialog
Icon=deepin-dde
Exec=/bin/false
TryExec=/bin/false
NoDisplay=true
Terminal=false
StartupNotify=false
Categories=System;
11 changes: 11 additions & 0 deletions misc/applications/org.deepin.dde.suspend-dialog.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Name=Deepin Suspend Dialog
Comment=Deepin suspend confirmation dialog
Icon=deepin-dde
Exec=/bin/false
TryExec=/bin/false
NoDisplay=true
Terminal=false
StartupNotify=false
Categories=System;
11 changes: 11 additions & 0 deletions misc/applications/org.deepin.dde.touchscreen-dialog.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Name=Deepin Touchscreen Dialog
Comment=Deepin touchscreen association dialog
Icon=deepin-dde
Exec=/bin/false
TryExec=/bin/false
NoDisplay=true
Terminal=false
StartupNotify=false
Categories=System;
11 changes: 11 additions & 0 deletions misc/applications/org.deepin.dde.warning-dialog.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Name=Deepin Warning Dialog
Comment=Deepin warning dialog
Icon=deepin-dde
Exec=/bin/false
TryExec=/bin/false
NoDisplay=true
Terminal=false
StartupNotify=false
Categories=System;
11 changes: 11 additions & 0 deletions misc/applications/org.deepin.dde.welcome.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Name=Deepin Welcome
Comment=Deepin welcome screen
Icon=deepin-dde
Exec=/bin/false
TryExec=/bin/false
NoDisplay=true
Terminal=false
StartupNotify=false
Categories=System;
11 changes: 11 additions & 0 deletions misc/applications/org.deepin.dde.wm-chooser.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Name=Deepin WM Chooser
Comment=Deepin window manager chooser
Icon=deepin-dde
Exec=/bin/false
TryExec=/bin/false
NoDisplay=true
Terminal=false
StartupNotify=false
Categories=System;
4 changes: 3 additions & 1 deletion reset-password-dialog/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2016 - 2023 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2016 - 2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand All @@ -24,6 +24,8 @@ int main(int argc, char *argv[])
DApplication a(argc, argv);
a.setQuitOnLastWindowClosed(true);
a.setOrganizationName("deepin");
a.setApplicationName("reset-password-dialog");
a.setDesktopFileName(QStringLiteral("org.deepin.dde.reset-password-dialog"));

QCommandLineParser parser;
parser.addHelpOption();
Expand Down
Loading