0

how to create desktop short cuts as the different user logins?

Pubudug
  • 51
  • 1
  • 4

1 Answers1

0

Create a shell script with the following code

dm-tool switch-to-user USERNAME

and save it as /home/yourname/bin/login_script.sh. Make sure it is executable

Now, add the script as a shortcut on desktop by creating a ~/Desktop/login.desktop file with the following contents:

[Desktop Entry]  
Version=1.0  
Exec=/home/yourname/bin/login_script.sh  
Name=Switch User  
GenericName=Switch user
Comment=Login as different user
Encoding=UTF-8  
Terminal=true  
Type=Application  
Categories=Application;
Rishi Dua
  • 150