09-02-2020, 04:27 PM
(07-24-2020, 05:21 AM)devrtz Wrote: Phosh accepts the -U flag which can be used to start the session unlocked. I'm not sure however if this also prevents it from going to the lockscreen.
PS: I only tried this while running a nested phosh/phoc inside my WM/DE.
Have tried to play with this and have failed miserably, mainly as my coding/scripting skills are negligible!
Not sure whether phosh.service is from /etc/systemd/system/graphical.target.wants/ or /usr/lib/systemd/system/ but both of them
Code:
ExecStart=/usr/bin/phosh
Code:
$ cat /usr/bin/phosh
#!/bin/sh
COMPOSITOR="/usr/bin/phoc"
PHOC_INI="/usr/share/phosh/phoc.ini"
gnome_session_args()
{
ARGS="--disable-acceleration-check --session=phosh"
# Use builtin session handling until we can rely
# on a newer gnome-session everywhere
if gnome-session --help | grep -qs -e--builtin; then
ARGS="--builtin ${ARGS}"
fi
echo "${ARGS}"
}
if [ -x /usr/bin/phoc ]; then
COMPOSITOR=/usr/bin/phoc
fi
if [ -f /etc/phosh/phoc.ini ]; then
PHOC_INI=/etc/phosh/phoc.ini
elif [ -f /etc/phosh/rootston.ini ]; then
# honor old configs
PHOC_INI=/etc/phosh/rootston.ini
fi
# Run gnome-session through a login shell so it picks
# variables from /etc/profile.d (XDG_*)
[ -n "$WLR_BACKENDS" ] || WLR_BACKENDS=drm,libinput
export WLR_BACKENDS
exec "${COMPOSITOR}" -C "${PHOC_INI}" -E "bash -lc 'gnome-session $(gnome_session_args)'"
Still would love to get rid of the stupid PIN screen login if there are any suggestions.
- ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Arch (6.2 kernel, Openbox desktop) for general purpose daily PC.
- PinePhone Pro Explorer Edition, daily driver, rk2aw & U-boot on SPI, Arch/SXMO & Arch/phosh on eMMC
- PinePhone BraveHeart now v1.2b 3/32Gb, Tow-boot with Arch/SXMO on eMMC