Xfce Forum

Sub domains
 

You are not logged in.

#1 2025-11-27 12:09:45

eriefisher
Wanderer
From: ON, Canada
Registered: 2008-10-25
Posts: 813
LinuxFirefox 145.0

Autostart Different Application X/Wayland

I'm looking for some ideas on how to do this cleanly. I will switch back and forth from X to Wayland occasionally but there are some applications that don't run in wayland and some won't run in X. I have chosen alternates for each login type but if I use the xfce4 autostart then some applications either won't run(ok) or will run in both environments(not preferable). Wayland/Labwc has a means of autostarting applications but if I use the normal autostart feature then all I have is an all or none scenario.

The one application I would start with is Tilda. A drop down terminal for X. On Wayland I chose Guake. Not really that great but it's the only on I could get to work consistently. The problem is guake runs on both X and Wayland so I just kill it while under X as I prefer Tilda.

Any Idea?


I AM CANADIAN!
Siduction
Debian Sid
Xfce 4.20 with Wayland/Labwc

Offline

#2 2025-11-27 13:43:34

Misko_2083
Member
Registered: 2015-10-13
Posts: 228
Website
LinuxFirefox 140.0

Re: Autostart Different Application X/Wayland

A simple wrapper script would do

#!/bin/bash

if [[ "$XDG_SESSION_TYPE" == "wayland" ]]; then
    exec guake
else
    exec tilda
fi

Last edited by Misko_2083 (2025-11-27 13:44:29)


Do you want to exit the Circus?
https://www.youtube.com/watch?v=ZJwQicZHp_c

Offline

#3 2025-11-27 13:43:37

trinidad
Member
From: Chicago
Registered: 2024-05-20
Posts: 12
Website
LinuxFirefox 128.0

Re: Autostart Different Application X/Wayland

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 542.28 KiB (Peak: 549.64 KiB) ]