sddm-plasma.düzenleme

This commit is contained in:
giresun28 2016-07-31 23:49:18 +00:00
parent 51c70feef6
commit 2a8f8bfc79
6 changed files with 130 additions and 7 deletions

View File

@ -0,0 +1 @@
auth required pam_unix_auth.so

View File

@ -7,7 +7,9 @@ name=plasma-workspace
version=5.7.2
release=1
source=( http://download.kde.org/stable/plasma/$version/$name-$version.tar.xz)
source=( http://download.kde.org/stable/plasma/$version/$name-$version.tar.xz
10-kf5
kscreensaver.pam)
build() {
cd $name-$version
@ -20,8 +22,8 @@ cmake -DCMAKE_INSTALL_PREFIX=/usr \
make
make DESTDIR=$PKG install
mkdir -p $PKG/usr/bin/
sed -i "s:qtpaths:&-qt5:g" $PKG/usr/bin/startkde
sed 's|qtpaths|qtpaths-qt5|' -i $PKG/usr/bin/startkde
sed 's|qtpaths|qtpaths-qt5|' -i $PKG/usr/bin/startplasmacompositor
mkdir -p $PKG/etc/pam.d
@ -38,4 +40,6 @@ EOF
install -v -dm755 $PKG/usr/share/xsessions
ln -sfv /usr/share/xsessions/plasma.desktop $PKG/usr/share/xsessions/kf5-plasma.desktop
install -D -m644 $SRC/kscreensaver.pam $PKG/etc/pam.d/kscreensaver
}

View File

@ -0,0 +1,12 @@
polkit.addRule(function(action, subject) {
if (action.id.indexOf("org.kde.powerdevil.backlighthelper.") == 0 &&
subject.isInGroup("users")) {
return polkit.Result.YES;
}
});

View File

@ -0,0 +1,100 @@
[Autologin]
# Autologin again on session exit
Relogin=false
# Autologin session
Session=plasma.desktop
# Autologin user
User=
[General]
# Halt command
HaltCommand=/sbin/shutdown -h -P now
# Initial NumLock state
# Valid values: on|off|none
# If property is set to none, numlock won't be changed
Numlock=none
# Reboot command
RebootCommand=/sbin/shutdown -r now
[Theme]
# Current theme name
Current=breeze
# Cursor theme
CursorTheme=breeze_cursors
# Face icon directory
# The files should be in username.face.icon format
FacesDir=/usr/share/sddm/faces
# Theme directory path
ThemeDir=/usr/share/sddm/themes
[Users]
# Default $PATH
DefaultPath=/bin:/usr/bin:/usr/sbin:/usr/local/bin
# Hidden shells
# Users with these shells as their default won't be listed
HideShells=
# Hidden users
HideUsers=
# Maximum user id for displayed users
MaximumUid=65000
# Minimum user id for displayed users
MinimumUid=1000
# Remember the session of the last successfully logged in user
RememberLastSession=true
# Remember the last successfully logged in user
RememberLastUser=true
[WaylandDisplay]
# Wayland session script path
# A script to execute when starting the desktop session
SessionCommand=/usr/share/sddm/scripts/wayland-session
# Session description directory
SessionDir=/usr/share/wayland-sessions
[XDisplay]
# Xsetup script path
# A script to execute when starting the display server
DisplayCommand=/usr/share/sddm/scripts/Xsetup
# Xstop script path
# A script to execute when stopping the display server
DisplayStopCommand=/usr/share/sddm/scripts/Xstop
# Minimum VT
# The lowest virtual terminal number that will be used.
MinimumVT=1
# X server path
ServerPath=/usr/bin/X
# Xsession script path
# A script to execute when starting the desktop session
SessionCommand=/usr/share/sddm/scripts/Xsession
# Session description directory
SessionDir=/usr/share/xsessions
# Xauth path
XauthPath=/usr/bin/xauth
# Xephyr path
XephyrPath=/usr/bin/Xephyr

View File

@ -1,3 +1,4 @@
. lib/lsb/init-functions
sed -i "s/^id:[3-5]/id:5/" etc/inittab
log_success_msg2 "Init default set to 5 in the ${WARNING}/etc/inittab ${NORMAL}file"
sed -i "s/^id:[3-5]/id:5/" /etc/inittab
echo "Init default set to 5 in the /etc/inittab file"
ln -s /etc/init.d/sddm /etc/rc.d/rc5.d/S90sddm

View File

@ -1,13 +1,15 @@
# Description : The SDDM package contains a lightweight display manager written in Qt and QML.
# URL: https://www.kde.org/
# Packager: alihan-ozturk28@hotmail.com
# Depends on: cmake qt5 upower consolekit2
# Depends on: cmake qt5 upower consolekit2
name=sddm
release=1
version=0.13.0
source=( https://github.com/sddm/sddm/releases/download/v$version/${name}-$version.tar.xz)
source=( https://github.com/sddm/sddm/releases/download/v$version/${name}-$version.tar.xz
sddm.conf
10-backlight.rules)
build() {
source /etc/blfs-bootscripts
@ -24,6 +26,9 @@ cmake -DCMAKE_INSTALL_PREFIX=/usr \
make
make DESTDIR=$PKG install
install -m 644 -p $SRC/sddm.conf $PKG/etc/
install -m 644 -p $SRC/10-backlight.rules $PKG/etc/polkit-1/rules.d/
cat > $PKG/etc/pam.d/sddm << "EOF"
# Begin /etc/pam.d/sddm