mirror of
https://github.com/fairyglade/ly.git
synced 2025-12-22 04:04:55 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ba0725dd4 | ||
|
|
f2050c955d | ||
|
|
4c17b2f91d | ||
|
|
ee41d926a0 | ||
|
|
4a1f965bea |
9
makefile
9
makefile
@@ -88,7 +88,12 @@ clean:
|
|||||||
@rm -rf $(BIND) $(OBJD) valgrind.log
|
@rm -rf $(BIND) $(OBJD) valgrind.log
|
||||||
@(cd $(SUBD)/termbox_next && $(MAKE) clean)
|
@(cd $(SUBD)/termbox_next && $(MAKE) clean)
|
||||||
|
|
||||||
github:
|
remotes:
|
||||||
|
@echo "registering remotes"
|
||||||
|
@git remote add github git@github.com:cylgom/$(NAME).git
|
||||||
|
@git remote add gitea ssh://git@git.cylgom.net:2999/cylgom/$(NAME).git
|
||||||
|
|
||||||
|
github: remotes
|
||||||
@echo "sourcing submodules from https://github.com"
|
@echo "sourcing submodules from https://github.com"
|
||||||
@cp .github .gitmodules
|
@cp .github .gitmodules
|
||||||
@git submodule sync
|
@git submodule sync
|
||||||
@@ -96,7 +101,7 @@ github:
|
|||||||
@cd $(SUBD)/argoat && make github
|
@cd $(SUBD)/argoat && make github
|
||||||
@git submodule update --init --recursive --remote
|
@git submodule update --init --recursive --remote
|
||||||
|
|
||||||
gitea:
|
gitea: remotes
|
||||||
@echo "sourcing submodules from https://git.cylgom.net"
|
@echo "sourcing submodules from https://git.cylgom.net"
|
||||||
@cp .gitea .gitmodules
|
@cp .gitea .gitmodules
|
||||||
@git submodule sync
|
@git submodule sync
|
||||||
|
|||||||
100
res/xsetup.sh
100
res/xsetup.sh
@@ -1,4 +1,102 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
# Xsession - run as user
|
||||||
|
# Copyright (C) 2016 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
|
||||||
|
|
||||||
~/.xsession
|
# This file is extracted from kde-workspace (kdm/kfrontend/genkdmconf.c)
|
||||||
|
# Copyright (C) 2001-2005 Oswald Buddenhagen <ossi@kde.org>
|
||||||
|
|
||||||
|
# Note that the respective logout scripts are not sourced.
|
||||||
|
case $SHELL in
|
||||||
|
*/bash)
|
||||||
|
[ -z "$BASH" ] && exec $SHELL $0 "$@"
|
||||||
|
set +o posix
|
||||||
|
[ -f /etc/profile ] && . /etc/profile
|
||||||
|
if [ -f $HOME/.bash_profile ]; then
|
||||||
|
. $HOME/.bash_profile
|
||||||
|
elif [ -f $HOME/.bash_login ]; then
|
||||||
|
. $HOME/.bash_login
|
||||||
|
elif [ -f $HOME/.profile ]; then
|
||||||
|
. $HOME/.profile
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*/zsh)
|
||||||
|
[ -z "$ZSH_NAME" ] && exec $SHELL $0 "$@"
|
||||||
|
[ -d /etc/zsh ] && zdir=/etc/zsh || zdir=/etc
|
||||||
|
zhome=${ZDOTDIR:-$HOME}
|
||||||
|
# zshenv is always sourced automatically.
|
||||||
|
[ -f $zdir/zprofile ] && . $zdir/zprofile
|
||||||
|
[ -f $zhome/.zprofile ] && . $zhome/.zprofile
|
||||||
|
[ -f $zdir/zlogin ] && . $zdir/zlogin
|
||||||
|
[ -f $zhome/.zlogin ] && . $zhome/.zlogin
|
||||||
|
emulate -R sh
|
||||||
|
;;
|
||||||
|
*/csh|*/tcsh)
|
||||||
|
# [t]cshrc is always sourced automatically.
|
||||||
|
# Note that sourcing csh.login after .cshrc is non-standard.
|
||||||
|
xsess_tmp=`mktemp /tmp/xsess-env-XXXXXX`
|
||||||
|
$SHELL -c "if (-f /etc/csh.login) source /etc/csh.login; if (-f ~/.login) source ~/.login; /bin/sh -c 'export -p' >! $xsess_tmp"
|
||||||
|
. $xsess_tmp
|
||||||
|
rm -f $xsess_tmp
|
||||||
|
;;
|
||||||
|
*/fish)
|
||||||
|
[ -f /etc/profile ] && . /etc/profile
|
||||||
|
xsess_tmp=`mktemp /tmp/xsess-env-XXXXXX`
|
||||||
|
$SHELL --login -c "/bin/sh -c 'export -p' > $xsess_tmp"
|
||||||
|
. $xsess_tmp
|
||||||
|
rm -f $xsess_tmp
|
||||||
|
;;
|
||||||
|
*) # Plain sh, ksh, and anything we do not know.
|
||||||
|
[ -f /etc/profile ] && . /etc/profile
|
||||||
|
[ -f $HOME/.profile ] && . $HOME/.profile
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
[ -f /etc/xprofile ] && . /etc/xprofile
|
||||||
|
[ -f $HOME/.xprofile ] && . $HOME/.xprofile
|
||||||
|
|
||||||
|
# run all system xinitrc shell scripts.
|
||||||
|
if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
||||||
|
for i in /etc/X11/xinit/xinitrc.d/* ; do
|
||||||
|
if [ -x "$i" ]; then
|
||||||
|
. "$i"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Load Xsession scripts
|
||||||
|
# OPTIONFILE, USERXSESSION, USERXSESSIONRC and ALTUSERXSESSION are required
|
||||||
|
# by the scripts to work
|
||||||
|
xsessionddir="/etc/X11/Xsession.d"
|
||||||
|
OPTIONFILE=/etc/X11/Xsession.options
|
||||||
|
USERXSESSION=$HOME/.xsession
|
||||||
|
USERXSESSIONRC=$HOME/.xsessionrc
|
||||||
|
ALTUSERXSESSION=$HOME/.Xsession
|
||||||
|
|
||||||
|
if [ -d "$xsessionddir" ]; then
|
||||||
|
for i in `ls $xsessionddir`; do
|
||||||
|
script="$xsessionddir/$i"
|
||||||
|
echo "Loading X session script $script"
|
||||||
|
if [ -r "$script" -a -f "$script" ] && expr "$i" : '^[[:alnum:]_-]\+$' > /dev/null; then
|
||||||
|
. "$script"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -d /etc/X11/Xresources ]; then
|
||||||
|
for i in /etc/X11/Xresources/*; do
|
||||||
|
[ -f $i ] && xrdb -merge $i
|
||||||
|
done
|
||||||
|
elif [ -f /etc/X11/Xresources ]; then
|
||||||
|
xrdb -merge /etc/X11/Xresources
|
||||||
|
fi
|
||||||
|
[ -f $HOME/.Xresources ] && xrdb -merge $HOME/.Xresources
|
||||||
|
|
||||||
|
if [ -f "$USERXSESSION" ]; then
|
||||||
|
. "$USERXSESSION"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$*" ]; then
|
||||||
|
exec xmessage -center -buttons OK:0 -default OK "Sorry, $DESKTOP_SESSION is no valid session."
|
||||||
|
else
|
||||||
exec $@
|
exec $@
|
||||||
|
fi
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stropts.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
|||||||
18
src/utils.c
18
src/utils.c
@@ -110,8 +110,26 @@ void desktop_crawl(
|
|||||||
|
|
||||||
void desktop_load(struct desktop* target)
|
void desktop_load(struct desktop* target)
|
||||||
{
|
{
|
||||||
|
// we don't care about desktop environments presence
|
||||||
|
// because the fallback shell is always available
|
||||||
|
// so we just dismiss any "throw" for now
|
||||||
|
int err = 0;
|
||||||
|
|
||||||
desktop_crawl(target, config.waylandsessions, DS_WAYLAND);
|
desktop_crawl(target, config.waylandsessions, DS_WAYLAND);
|
||||||
|
|
||||||
|
if (dgn_catch())
|
||||||
|
{
|
||||||
|
++err;
|
||||||
|
dgn_reset();
|
||||||
|
}
|
||||||
|
|
||||||
desktop_crawl(target, config.xsessions, DS_XORG);
|
desktop_crawl(target, config.xsessions, DS_XORG);
|
||||||
|
|
||||||
|
if (dgn_catch())
|
||||||
|
{
|
||||||
|
++err;
|
||||||
|
dgn_reset();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static char* hostname_backup = NULL;
|
static char* hostname_backup = NULL;
|
||||||
|
|||||||
Submodule sub/configator updated: 22ce943e65...c3e1ef1754
Reference in New Issue
Block a user