1

Is it possible to check the list of the startup applications for a specific user account by using another user account?

Both accounts are administrators.

I'm using Ubuntu 19.10.

I tried to search on google, but I found nothing about this topic. I need to check if a specific application has been set as startup application for a specific user account.

EDIT: Thanks to the suggestions, I was able to get the startup list applications list:

find ~/.config/autostart -user robodyne -ls
  5641238      4 drwx------   2 robodyne robodyne     4096 nov 19 14:28 /home/robodyne/.config/autostart
  5637055      4 -rw-rw-r--   1 robodyne robodyne      203 ott 14 16:43 /home/robodyne/.config/autostart/teamviewer.desktop
  5641240      4 -rw-rw-r--   1 robodyne robodyne      218 set 11 22:10 /home/robodyne/.config/autostart/snap-userd-autostart.desktop
  5641239      4 -rw-rw-r--   1 robodyne robodyne      204 nov 19 14:28 /home/robodyne/.config/autostart/Isola02.desktop

is it possible to remove a specific entry?

1 Answer 1

2

So you want to get the list of startup applications of another user.
To do so, you must need to know the username and password of that user.
So, while you are using your account open terminal and type
su username
then terminal is waiting for you to type the password for that user.

Given below command is used to get list of startup applications by the specific user.
find /etc/init.d -user username -ls
If you do not get the list then use given below command to get the list of autostart applications.
find ~/.config/autostart -user username -ls

Note: replace username with the specific username


EDIT :

If you want to remove a specific application from autostart -
Suppose you want to remove teamviewer.desktop as shown in the list output then use.

rm -iv ~/.config/autostart/teamviewer.desktop

here -i will prompt before every removal.
-v will explain what is being done.

8
  • 1
    May worth mentioning that the last find command has to be used after logging in as the other user. The ~ refers to home directory of the user under whom the find command runs. Ir just use full path like /home/johndoe/.config/autostart Feb 8, 2020 at 10:36
  • It worked really fine!! Is it possible to remove a specific application? Feb 8, 2020 at 10:39
  • I edited my first post in order to show the list of applications. Is it possible to remove only a specific list? Obviously, I can login as the correct user. Feb 8, 2020 at 10:40
  • @SergiyKolodyazhnyy Type echo ~ to get the current poiting directory and then use su username after then by typing echo ~, you can see the poiting directory has changed from previous to new specific user. So what's problem ? Feb 8, 2020 at 11:00
  • I don't know the meaning of your last post, however, I solved it, thank you a lot! Feb 8, 2020 at 11:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.