xfce4-session rebuild

This commit is contained in:
Rmys
2021-01-29 21:40:00 +03:00
committed by GitHub
parent 83b1a84426
commit 09454f7dee
8 changed files with 205 additions and 2 deletions
@@ -0,0 +1,32 @@
From 464659dbdd982cad0d2b315b12d3bfc5c5bc1f16 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jani=20V=C3=A4limaa?= <wally@mageia.org>
Date: Fri, 25 Dec 2020 13:16:46 +0200
Subject: [PATCH] Export XDG_CONFIG_HOME and XDG_CACHE_HOME
---
scripts/xinitrc.in.in | 2 ++
1 file changed, 2 insertions(+)
diff --git a/scripts/xinitrc.in.in b/scripts/xinitrc.in.in
index ff044ed..9bd6fc3 100644
--- a/scripts/xinitrc.in.in
+++ b/scripts/xinitrc.in.in
@@ -33,6 +33,7 @@ fi
# or empty, a default equal to $HOME/.config should be used.
if test "x$XDG_CONFIG_HOME" = "x" ; then
XDG_CONFIG_HOME=$HOME/.config
+ export XDG_CONFIG_HOME
fi
[ -d "$XDG_CONFIG_HOME" ] || mkdir "$XDG_CONFIG_HOME"
@@ -41,6 +42,7 @@ fi
# set or empty, a default equal to $HOME/.cache should be used.
if test "x$XDG_CACHE_HOME" = "x" ; then
XDG_CACHE_HOME=$HOME/.cache
+ export XDG_CACHE_HOME
fi
[ -d "$XDG_CACHE_HOME" ] || mkdir "$XDG_CACHE_HOME"
--
2.29.2
@@ -0,0 +1,2 @@
[Seat:*]
user-session=xfce
@@ -0,0 +1,19 @@
diff -up ./scripts/xflock4.orig ./scripts/xflock4
--- ./scripts/xflock4.orig 2015-09-27 13:19:24.784098605 +0300
+++ ./scripts/xflock4 2015-09-27 13:21:49.630546600 +0300
@@ -30,9 +30,11 @@ LOCK_CMD=$(xfconf-query -c xfce4-session
# Lock by xscreensaver or gnome-screensaver, if a respective daemon is running
for lock_cmd in \
"$LOCK_CMD" \
- "xfce4-screensaver-command --lock" \
- "xscreensaver-command -lock" \
- "gnome-screensaver-command --lock"
+ "xfce4-screensaver-command --lock" \
+ "light-locker-command --lock" \
+ "mate-screensaver-command --lock" \
+ "gnome-screensaver-command --lock" \
+ "xscreensaver-command -lock"
do
if [ ! -z "$lock_cmd" ]; then
$lock_cmd >/dev/null 2>&1 && exit
@@ -0,0 +1,28 @@
diff -p -up ./scripts/xinitrc.in.in.0000 ./scripts/xinitrc.in.in
--- ./scripts/xinitrc.in.in.0000 2012-03-30 18:48:01.000000000 +0000
+++ ./scripts/xinitrc.in.in 2012-04-01 19:14:14.875368141 +0000
@@ -44,6 +44,24 @@ if which xdg-user-dirs-update >/dev/null
xdg-user-dirs-update
fi
+# Create user preferences if they are missing
+# - Thunar
+for i in Thunar; do
+ if [ ! -d $XDG_CONFIG_HOME/$i ]; then
+ mkdir -p $XDG_CONFIG_HOME/$i
+ cp -a /etc/xdg/$i $XDG_CONFIG_HOME
+ fi ;
+done
+
+
+# Create panel and xfconf user preferences if they are missing
+for i in panel xfconf terminal; do
+ if [ ! -d $XDG_CONFIG_HOME/xfce4/$i ]; then
+ mkdir -p $XDG_CONFIG_HOME/xfce4/$i
+ cp -a /etc/xdg/xfce4/$i $XDG_CONFIG_HOME/xfce4
+ fi ;
+done
+
# For now, start with an empty list
XRESOURCES=""
@@ -0,0 +1,7 @@
#%PAM-1.0
auth include system-auth
auth required pam_nologin.so
account include system-auth
password include system-auth
session include system-auth
session optional pam_console.so