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/phoshCode:
$ 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.
- PinePhone BraveHeart now v1.2b 3/32Gb daily driver, Tow-boot with pmOS/SXMO on eMMC
 
- PinePhone pmOS Community Edition 2/16Gb driving my picture frame, Tow-boot with pmOS/SXMO on eMMC
 
- PinePhone Pro Explorer Edition, Tow-boot on SPI, Arch/SXMO on eMMC
 
- ROCKPro64 v2.1 2GB, 16Gb eMMC retired in favour of a fruity upgrade
 


