Jump to content
  • 0
spankmon

Auto Start Works for Some Apps, Not Others

Question

The apps that I want to autostart on login are xscreensaver, conky, cairo-dock, redshift and compton. I've found three different autostart methods here on the forum and within the settings menu... and managed to get conky, cairo-dock, and xscreensaver to autostart. But nothing works for redshift or compton. Now, I'm not even sure which startup method was the one that did work because I have left all three methods activated (two different startup gui's in the Moksha menu, and editing the file in .e/e/applications folder). For now I have created launchers so I can start them after logging in, but would really prefer them to auto-start. This is on a desktop PC with nvidia gtx 760 graphics card and the 375 proprietary drivers. I have also installed the compton-conf so I can actually adjust transparency etc., but it doesn't offer any option for autostart. Thanks.

 

EDIT: I finally got redshift to work on startup, but not compton.

Share this post


Link to post
Share on other sites

10 answers to this question

Recommended Posts

  • 0

If you open the "System Settings" tool from your Menu -> Applications -> System Tools -> System Settings you will find a "Startup Applications" option that will let you add both raw commands and existing .desktop applications to run at startup via a GUI

If you have any issues with this tool let us know.

Share this post


Link to post
Share on other sites
  • 0

Thanks for the reply Jeff. I've tried several different ways to get compton to auto start using the Swami settings mgr. If I use the "applications search" it can't find Compton. When I use the command it will add the command ok, but still won't auto start Compton. I've tried the command compton -b and it still won't auto start. I've noticed that after adding the command, the file ".e/e/applications/startup/startupcommands" doesn't have the "| \" at the end which the other commands do have... so I tried adding that bit and Compton still won't auto start. I've also tried adding the command with the full path to /usr/bin/compton and still no luck. Also tried with the -b and the pipe slash. I have no problem starting compton after I log in... both with a terminal and a launcher using only the "compton" command. I've also tried removing all the other startup apps and using only compton, in case there was some sort of conflict. Still didn't work. The Swami gui works with all the other startup apps that are added.

Share this post


Link to post
Share on other sites
  • 0

Thanks, The waiter. That thread was the solution for me. I needed to add... sh -c 'compton -b &' ...to the .e/e/applications/startup/startupcommands file as the FIRST entry of the file. If I add the command through the Swami gui, it modifies the command and won't work. So it needs to be added to the file directly. I love frying my brain attempting to fix things that are way above my level of expertise. Thanks again.

Share this post


Link to post
Share on other sites
  • 0

For the sake of improving our GUI tool could you please post the contents of the working file you've edited by hand as well as the contents of the file generated by the tool that did not work for you?

 

Thanks!

Share this post


Link to post
Share on other sites
  • 0

This is the working code from .e/e/applications/startup/startupapplications. Both lines were added with a text editor.

sh -c 'compton -b &' | \ 
xscreensaver

The other applications which I have on startup were added with the "startup applications" tab of Swami. They are cairo-dock, redshift and conky. Conky was picked up by the gui search (normally it wouldn't be) because, somehow, I added a launcher to the Main Menu apps "Other" section. I don't remember how I added the launcher to the menu, something about a custom personal menu.  So I didn't need to add conky as a command.

 

And these are the entries that were added with Swami that didn't work. This is how it showed up in the file, but the "and" symbol had been typed correctly in the Swami text box. This was before I had read the thread that solved my problem. I had also previously tried just adding "compton" in the Swami command and it didn't work either. It showed up in the file without the pipe slash.

xscreensaver | \ 
compton -b &

Share this post


Link to post
Share on other sites
  • 0

The last line doesn't need the pipe slash.

It likely didn't work because of how it reformatted the & symbol like you see there. Will have to see what I can do about that - thanks for sharing. 

Share this post


Link to post
Share on other sites
  • 0

I don't know if this is related, but every time I log in to Bodhi the caps lock light on the keyboard is activated... even though caps lock is not really activated... and I have to click it twice to turn it off. I switched to the Bodhi green theme and it still happens.

Share this post


Link to post
Share on other sites
  • 0

I don't know if this is related, but every time I log in to Bodhi the caps lock light on the keyboard is activated... even though caps lock is not really activated... and I have to click it twice to turn it off. I switched to the Bodhi green theme and it still happens.

 

Spankmon, you may want to open a new thread for this as this thread has been marked as solved.

 

Thank you!

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×