However it doesn’t start.
Oddly enough the other autostart files that I created work.
Also if I start it from Terminal manually with the same command: compton -CG --config ~/.config/.compton.conf
The session tab is for saving your sessions e.g. like Hibernate. I think it’s useful if you want to launch with a particular set of applications. I did try it though, but it didn’t work for Compton.
Oh and make sure your checkbox for save session at logout is not ticked, next thing i’d do is log in as root and delete your home/you/.cache/sessions, see if it resolves the issue
You are correct, my bad it’s been too long since I last messed around with compton, xfce and such. Looked into it a bit though.
Remove the desktop file and edit the startup entry with the following exec: /usr/bin/compton -b --config ~/.config/compton.conf (-b flag is for starting it as a background daemon)
You had a typo in your desktop entry. You were adding “.compton.conf” instead of “compton.conf”. Happens to everyone at some point haha. That should work perfectly. The desktop entry is not needed as the command will run on startup.
If you have issues with the edges and such post back.
EDIT:
I should have added, if you want to use the desktop file use the following:
[Desktop Entry]
Name=Compton
Comment=Compton Compositor
Exec=compton -CGb --config ~/.config/compton.conf
Well actually my config file is named .compton.conf so it’s not a typo in the command, but rather in the file name.
Oddly enough compton did start this time when I tried it without the --config option.
Btw the desktop entry and the startup entry are the same thing - the startup entry creates a desktop entry when I save it.
So I removed the dot from the filename and corrected the startup entry, but it still wouldn’t start.
Solution: Finally I used the config file from the guide @KoalaAteMySnack provided, then I deleted the desktop entry.
Created a new startup entry in the settings without any additional options i.e. the command is just “compton” and now it runs smoothly. For some reason it wouldn’t start with options as a startup entry, only from terminal.
However it would appear that with that config file those options are unnecessary and since this is the default config file (with the dot removed), it doesn’t need pointing to anyway.
Ok,
If I have to be completely honest, I didn’t test it thoroughly enough last time.
Compton does start and most of the tearing is gone, but I did notice that there is some tearing in YouTube videos now.
Any idea if I should change some of the settings in the config file to fix this?