Commit b3beca86 authored by Roman Alifanov's avatar Roman Alifanov

Initial commit

parents
tar: .
\ No newline at end of file
all:
echo "We don't need any build"
cmd_list = ready-set-service
PREFIX=/usr
DATADIR=$(PREFIX)/share
UNITDIR=$(PREFIX)/lib/systemd/system
install: install_common
install_common:
mkdir -p $(DESTDIR)$(PREFIX)/bin
install -p -Dm 0755 ready-set-service $(DESTDIR)$(PREFIX)/bin/ready-set-service
install -p -Dm 0755 ready-set-service.service $(DESTDIR)$(UNITDIR)/ready-set-service.service
install -p -Dm 0755 ready-set-start.sh $(DESTDIR)$(DATADIR)/ready-set-service/ready-set-start.sh
#!/bin/bash
mkdir -p /run/user/0
chmod 700 /run/user/0
export XDG_RUNTIME_DIR=/run/user/0
# export WAYLAND_DISPLAY=wayland-1
cage /usr/share/ready-set-service/ready-set-start.sh &&
# weston -- /usr/share/ready-set-service/ready-set-start.sh &&
# phoc -C /usr/share/phosh/phoc.ini -E /usr/share/ready-set-service/ready-set-start.sh &&
rm -rf /run/user/0/
dm_list=("gdm" "sddm" "lightdm" "greetd" "ly")
for dm in "${dm_list[@]}"; do
if systemctl list-unit-files | grep -q "^$dm.service"; then
echo "Enabling and starting display manager: $dm"
systemctl disable ready-set-service
systemctl enable --now "$dm"
break
fi
done
\ No newline at end of file
[Unit]
Description=OEM Setup test
After=graphical.target
Requires=graphical.target
[Service]
TTYPath=/dev/tty1
StandardInput=tty
StandardOutput=journal
ExecStart=/usr/bin/ready-set-service
RemainAfterExit=yes
[Install]
WantedBy=graphical.target
Name: ready-set-service
Version: 0.0.1
Release: alt1
Summary: Service for running ready-set
License: GPL-3.0-or-later
Group: System/Configuration/Other
Url: https://github.com/alt-gnome/ReadySet
BuildArch: noarch
Source: %name-%version.tar
Requires: ready-set
%description
%summary
%prep
%setup
%install
%makeinstall_std
%files
%_bindir/%name
%_datadir/%name
%_unitdir/%name.service
%changelog
#!/bin/bash
#/usr/bin/osk-wayland &
/usr/libexec/ready-set
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment