Skip to content

Commit

Permalink
qt-lightdm-greeter -> lightdm-qt5-greeter
Browse files Browse the repository at this point in the history
  • Loading branch information
rezso committed Nov 20, 2019
1 parent 2c45846 commit f2feddd
Show file tree
Hide file tree
Showing 14 changed files with 30 additions and 31 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
set(PROJECT qt-lightdm-greeter)
set(PROJECT lightdm-qt5-greeter)
project(${PROJECT})

set(CMAKE_AUTOMOC ON)
Expand All @@ -11,7 +11,7 @@ message(STATUS "SRCS ${SRCS}")
find_package(Qt5Widgets REQUIRED)
#find_package(Qt5X11Extras REQUIRED QUIET)

QT5_ADD_RESOURCES(RSCS qt-lightdm-greeter.qrc)
QT5_ADD_RESOURCES(RSCS lightdm-qt5-greeter.qrc)


include(FindPkgConfig)
Expand All @@ -22,15 +22,15 @@ include_directories ( ${CMAKE_CURRENT_SOURCE_DIR}
${LIGHTDM_QT_INCLUDE_DIRS}
)

add_executable ( qt-lightdm-greeter ${SRCS} ${RSCS})
add_executable ( lightdm-qt5-greeter ${SRCS} ${RSCS})

target_link_libraries ( qt-lightdm-greeter Qt5::Widgets ${LIGHTDM_QT_LIBRARIES} )
target_link_libraries ( lightdm-qt5-greeter Qt5::Widgets ${LIGHTDM_QT_LIBRARIES} )


install(TARGETS ${PROJECT} RUNTIME DESTINATION bin)
install(FILES qt-lightdm-greeter.desktop DESTINATION /usr/share/xgreeters)
install(FILES lightdm-qt5-greeter.desktop DESTINATION /usr/share/xgreeters)

if (NOT KEEP_CONFIGS)
install(FILES qt-lightdm-greeter.conf DESTINATION /etc/lightdm)
install(FILES lightdm-qt5-greeter.conf DESTINATION /etc/lightdm)
endif()

20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# qt-lightdm-greeter
# lightdm-qt5-greeter

qt-lightdm-greeter is a simple frontend for the lightdm displaymanager, written in c++ and qt5.
lightdm-qt5-greeter is a simple frontend for the lightdm displaymanager, written in c++ and qt5.

It has it's roots in the razor project, where it was developed under the name razor-lightdm-greeter. When razor was merged into LXQt it was renamed to lxqt-lightdm-greeter.
It has it's roots in the razor project, where it was developed under the name razor-lightdm-greeter. When razor was merged into LXQt it was renamed to lxlightdm-qt5-greeter.

As of september 2015 I have renamed it to qt-lightdm-greeter and cut it's ties to LXQt. This was primarily because LXQt recommends SDDM as its displaymanager and because the application had very little integration with LXQt.

Expand All @@ -15,24 +15,24 @@ Make sure you have cmake, gcc, qt5 and liblightdm-qt5 (and lightdm) installed on
Do

```shell
git clone https://github.com/surlykke/qt-lightdm-greeter.git
cd qt-lightdm-greeter
git clone https://github.com/surlykke/lightdm-qt5-greeter.git
cd lightdm-qt5-greeter
mkdir build
cd build
cmake ..
make
sudo make install
```

## How to enable qt-lightdm greeter
## How to enable lightdm-qt5 greeter

Update or insert in(to) your `/etc/lightdm/lightdm.conf`, in the `SeatDefaults` section, this line:

greeter-session=qt-lightdm-greeter
greeter-session=lightdm-qt5-greeter

## Configure qt-lightdm-greeter
## Configure lightdm-qt5-greeter

The file `/etc/lightdm/qt-lightdm-greeter.conf` allows for a
few configurations of qt-lightdm-greeter (background-image, positioning of loginform).
The file `/etc/lightdm/lightdm-qt5-greeter.conf` allows for a
few configurations of lightdm-qt5-greeter (background-image, positioning of loginform).
The configuration options are documented in that file.

2 changes: 1 addition & 1 deletion license-header.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Copyright (c) 2012-2015 Christian Surlykke
*
* This file is part of qt-lightdm-greeter
* This file is part of lightdm-qt5-greeter
* It is distributed under the LGPL 2.1 or later license.
* Please refer to the LICENSE file for a copy of the license.
*/
2 changes: 1 addition & 1 deletion qt-lightdm-greeter.conf → lightdm-qt5-greeter.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; qt-lightdm-greeter.conf
; lightdm-qt5-greeter.conf
;
; General configuration
;
Expand Down
3 changes: 1 addition & 2 deletions qt-lightdm-greeter.desktop → lightdm-qt5-greeter.desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[Desktop Entry]
Name=Qt LightDM Greeter
Comment=This runs the Qt LightDM greeter, it should only be run from LightDM
Exec=qt-lightdm-greeter
Exec=lightdm-qt5-greeter
Type=Application
X-Ubuntu-Gettext-Domain=lightdm
File renamed without changes.
2 changes: 1 addition & 1 deletion loginform.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Copyright (c) 2012-2015 Christian Surlykke
*
* This file is part of qt-lightdm-greeter
* This file is part of lightdm-qt5-greeter
* It is distributed under the LGPL 2.1 or later license.
* Please refer to the LICENSE file for a copy of the license.
*/
Expand Down
2 changes: 1 addition & 1 deletion loginform.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Copyright (c) 2012-2015 Christian Surlykke
*
* This file is part of qt-lightdm-greeter
* This file is part of lightdm-qt5-greeter
* It is distributed under the LGPL 2.1 or later license.
* Please refer to the LICENSE file for a copy of the license.
*/
Expand Down
6 changes: 3 additions & 3 deletions loginform.ui
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ QComboBox::down-arrow {
<string/>
</property>
<property name="pixmap">
<pixmap resource="qt-lightdm-greeter.qrc">:/resources/rqt-2.png</pixmap>
<pixmap resource="lightdm-qt5-greeter.qrc">:/resources/rqt-2.png</pixmap>
</property>
<property name="scaledContents">
<bool>true</bool>
Expand Down Expand Up @@ -249,7 +249,7 @@ QComboBox::down-arrow {
<string/>
</property>
<property name="icon">
<iconset resource="qt-lightdm-greeter.qrc">
<iconset resource="lightdm-qt5-greeter.qrc">
<normaloff>:/resources/leaveIcon.svg</normaloff>:/resources/leaveIcon.svg</iconset>
</property>
</item>
Expand All @@ -261,7 +261,7 @@ QComboBox::down-arrow {
</layout>
</widget>
<resources>
<include location="qt-lightdm-greeter.qrc"/>
<include location="lightdm-qt5-greeter.qrc"/>
</resources>
<connections/>
</ui>
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Copyright (c) 2012-2015 Christian Surlykke, Petr Vanek
*
* This file is part of qt-lightdm-greeter
* This file is part of lightdm-qt5-greeter
* It is distributed under the LGPL 2.1 or later license.
* Please refer to the LICENSE file for a copy of the license.
*/
Expand Down
2 changes: 1 addition & 1 deletion mainwindow.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Copyright (c) 2012-2015 Christian Surlykke, Petr Vanek
*
* This file is part of qt-lightdm-greeter
* This file is part of lightdm-qt5-greeter
* It is distributed under the LGPL 2.1 or later license.
* Please refer to the LICENSE file for a copy of the license.
*/
Expand Down
2 changes: 1 addition & 1 deletion mainwindow.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Copyright (c) 2012-2015 Christian Surlykke, Petr Vanek
*
* This file is part of qt-lightdm-greeter
* This file is part of lightdm-qt5-greeter
* It is distributed under the LGPL 2.1 or later license.
* Please refer to the LICENSE file for a copy of the license.
*/
Expand Down
2 changes: 1 addition & 1 deletion settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define LOGINFORM_OFFSETY_KEY "loginform-offset-y"
#define LOGFILE_PATH_KEY "logfile-path"

const QString Cache::GREETER_DATA_DIR_PATH = "/var/lib/lightdm/qt-lightdm-greeter";
const QString Cache::GREETER_DATA_DIR_PATH = "/var/lib/lightdm/lightdm-qt5-greeter";

void Cache::prepare()
{
Expand Down
4 changes: 2 additions & 2 deletions settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Cache : public QSettings
void setLastSession(QString userId, QString session) { setValue(userId + "/last-session", session); }
};

#define CONFIG_FILE "/etc/lightdm/qt-lightdm-greeter.conf"
#define CONFIG_FILE "/etc/lightdm/lightdm-qt5-greeter.conf"
#define BACKGROUND_IMAGE_KEY "greeter-background-image"
#define LOGINFORM_OFFSETX_KEY "loginform-offset-x"
#define LOGINFORM_OFFSETY_KEY "loginform-offset-y"
Expand All @@ -28,7 +28,7 @@ class Cache : public QSettings
class Settings : public QSettings
{
public:
Settings() : QSettings(QString("/etc/lightdm/qt-lightdm-greeter.conf"), QSettings::NativeFormat) {}
Settings() : QSettings(QString("/etc/lightdm/lightdm-qt5-greeter.conf"), QSettings::NativeFormat) {}
QString iconThemeName() { return value("greeter-icon-theme").toString(); }
QString backgrundImagePath() { return value("greeter-background-image").toString(); }
QString offsetX() { return value("loginform-offset-x").toString(); }
Expand Down

0 comments on commit f2feddd

Please sign in to comment.