Xfce Forum

Sub domains
 

You are not logged in.

#1 2018-09-22 19:44:39

johnywhy
Member
Registered: 2011-10-09
Posts: 151

How to execute command on CLI login for all users?

Using DevuanDog, a no-systemd distro based on DebianDog, a slimmed down version of current Debian release
https://debiandog.github.io/doglinux/zz … essie.html

http://murga-linux.com/puppy/viewtopic. … 908#996908

I'm using command line as login screen, so we're not consuming RAM and diskspace with Slim or other login eye-candy.

But, still want xfce desktop to start as soon as the user logs in at the command line, without having to type startx or startxfce4. That should happen for all users, including new ones added later.

How to do that? One of these?

Adding the command to the end of ~/.profile
https://askubuntu.com/questions/270049/ … d-at-login

seems that won't work for new users added later.

put a .desktop file in ~/.config/autostart to run applications after a user login. This may have following content:
[Desktop Entry]
Type=Application
Name=<Name of application as displayed>
Exec=<command to execute>
Icon=<full path to icon>
Comment=<optinal comments>
X-GNOME-Autostart-enabled=true
https://askubuntu.com/a/48327

xfce4-terminal  -e  "/batch-path/batch-name.sh"
    xfce4-terminal: open the terminal after user login with current user privileges
    -e: set the terminal to execute the batch file
    /batch-path/batch-name.sh: is the batch full path and full name
https://askubuntu.com/a/310333

Last edited by johnywhy (2018-09-22 19:45:12)


Mint 19 xfce, 4.15.0-29-generic #31-Ubuntu SMP, x86_64 x86_64 x86_64 GNU/Linux

Offline

Board footer

Powered by FluxBB