LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Remove start up application using command line (https://www.linuxquestions.org/questions/linux-newbie-8/remove-start-up-application-using-command-line-4175464830/)

unclesamcrazy 06-05-2013 08:58 AM

Remove start up application using command line
 
Hello everyone,

I am using ubuntu 12.10. My monitor is little old and some time it gives trouble.

I have put a command compiz --replace in my start up application, since then my monitor does not show desktop after log-in, it is closed automatically.
The cpu is on but the monitor is off and on/off switch can't make it working, the only way is restart.

I can see my log-in screen and as I enter my user name and password, monitor is closed automatically.

I know the start up applications are executed after log-in that's why it is closed automatically.

I can go on command line using ctrl+alt+f1.

Please give me a solution to remove this start up application using command line.

I should have made a shell script and put this command there. So I could rename the script using command line and my problem would be solved but unfortunately I have put the command there. Please tell me the way to remove this using command line.

Thanks

amani 06-05-2013 09:23 AM

Start a different fail-safe session instead from login screen.

or

# sudo apt-get purge compiz compiz-plugins-main-default libcompizconfig0

(if you have another desktop)

or

use gconftool-2

gconftool-2 --recursive-unset /apps/compiz-1

(safe)

or

edit the relevant config files ...

eklavya 06-05-2013 11:55 PM

If you can go on command line using ctrl+alt+f1, just log-in as root (if you can) or log-in as your regular user.
Run following command.
Quote:

# rm /root/.config/autostart/start-up-allication-name.desktop
where start-up-allication-name is the name which you put while creating application.
suppose your application name is compiz in your start up application, run following command.
Quote:

# rm /root/.config/autostart/compiz.desktop
If you are logged in as regular user, run
Quote:

$ sudo rm /root/.config/autostart/compiz.desktop
I hope, it will help.

unclesamcrazy 06-06-2013 07:14 AM

@eklavya
Thanks... it worked for me.
Now my monitor is started and that start up application is deleted.

I thought there is a way like to do something with rc.d, I was searching about my solution so I found this.
but your way is different, thanks it worked for me.


All times are GMT -5. The time now is 04:01 PM.