You are not logged in.

#1 2024-11-25 21:05:11

SimonJ
Member
Registered: 2021-05-11
Posts: 184

[SOLVED] Cosmic autostart

This is probably a silly question, how do I autostart apps in the Cosmic desktop?

I have looked through the settings and cannot find anything, but I also have empty settings pages as it is still an alpha release I am not looking for it to be perfect, just something to play with :-)
The lack of numlock and conky on every login is driving me insane.

Last edited by SimonJ (2024-11-25 21:50:10)


Rlu: 222126

Offline

#2 2024-11-25 21:07:18

gromit
Package Maintainer (PM)
From: Germany
Registered: 2024-02-10
Posts: 693
Website

Re: [SOLVED] Cosmic autostart

Apparently you place a .desktop file in ~/.config/autostart/ (taken from https://www.reddit.com/r/pop_os/comment … n_cosmic/)

Offline

#3 2024-11-25 21:12:54

SimonJ
Member
Registered: 2021-05-11
Posts: 184

Re: [SOLVED] Cosmic autostart

Thank you, I will try that, I will see if I can use the XFCE ones in both :-)

I edited the XFCE one and it is not working, so I created a whole new one and also not working.

There is a comment it is not implemented yet although that is replied to with this is a systemd thing not a desktop one.

I will wait and see what happens in the next release. Thank you.

and it does work if I launch from tty instead of lightdm. I will investigate, thank you

Last edited by SimonJ (2024-11-25 21:49:55)


Rlu: 222126

Offline

#4 2024-11-26 10:41:47

SimonJ
Member
Registered: 2021-05-11
Posts: 184

Re: [SOLVED] Cosmic autostart

If anyone else gets issues with this, I have had to add a 5 second sleep to the start script otherwise it just fails.

#!/bin/bash

USER=$(whoami)

count=1
while ! ping -c 1 -W 1 192.168.18.1; do
	notify-send --icon computer 'Waiting on network'
    sleep 1
    ((count++))
      if [ $count -eq 10 ]
    then
		sleep 5
         notify-send --icon computer 'Unable to connect'
       break

	fi
done
sleep 5
/home/$USER/bin/lidcheck.sh &
alsactl --file ~/.config/asound.state restore &
/opt/tuxedo-control-center/tuxedo-control-center --tray &
zapzap &
/home/$USER/bin/conk_start.sh &
HOUR=$(date +%H)
if [[ $HOUR < 10 ]]; then
notify-send "$(/home/$USER/bin/sync-passwords.sh)"
/home/$USER/bin/passtousbkey.sh
fi
keepassxc &

The script runs if started from tty or from cosmic-greeter, it does not work from lightdm.

Last edited by SimonJ (2024-11-26 10:43:52)


Rlu: 222126

Offline

Board footer

Powered by FluxBB