Installation problems | Problèmes à l'installation
Guest, Monday 16 June 2014 à 17:58
|
|
|
My apologies if this has been answered already, but I've spent hours trying to fix this.
First, I want session management turned on (to restart my other programs), but cairo-dock is restarted without the -o switch making me lose much of the eye-candy and likely a bit of speed. If I set cairo-dock to run from autostart, then I can set the -o, but then I get two - one started by autostart and another via session management (and if I don't kill one before logging out, they'll multiply each time I log in). The session management utility saves the autostarted version without the -o.
Is there a way for cairo to read the -o option from a config file for broken session-managers? I'm using Ubuntu-Studio and the default ubuntu-studio session (the cairo-dock session from the login screen doesn't work at all and I don't have time to look at why - neither cairo-dock nor a window manager are run, even if I add compiz to the cairo-dock-session script).
I've even tried changing cairo-dock to a script that tries to kill all other running instances before launching it with -o and that seems problematic as well.
Any ideas? |
matttbe, Monday 16 June 2014 à 19:07
|
|
Subscription date : 24 January 2009
Messages : 12573
|
Hello,
Are you using Ubuntu 14.04? Please add our PPA, it should fix this bug (the OpenGL backend is not used if you don't use this '-o' option)sudo add-apt-repository ppa:cairo-dock-team/ppa
sudo apt-get update
sudo apt-get dist-upgrade
Notes:
- This new version should be available in a few days in the official Ubuntu repos
- It's strange to have 2 dock at startup... Can you check if your launcher is named 'cairo-dock.conf' in the autostart repository?
- Can you check what's the default backend?
grep backend ~/.config/cairo-dock/.cairo-dock
|
brianw, Monday 16 June 2014 à 21:27
|
|
Subscription date : 25 April 2012
Messages : 270
|
From the information I have been able to find it looks like Ubuntu-Studio uses XFCE.
Startup applications are controlled by the 'Session and Startup' in the settings manager. If you have "Automatically save session on logout" selected you can get multiplying applications at startup like you have seen. You may be able to edit the entry for cairo dock and add the -o option but I have not tested it yet. |
Guest, Tuesday 17 June 2014 à 08:04
|
|
|
I'll try the ppa for the "-o" problem. And yes, the problem is that XFCE will load 1 from the list of autostart apps, then saves it in the session. Then on the next login it will restore the session AND load it from the autostart. Now you have 2. Both are saved in the session so at the next login you get 3! Of course, turn it off from the auto-start, but then if it ever dies, it doesn't get loaded at start-up. Ideally, a "only allow 1 instance" flag would be nice. I changed my .desktop file to run a script that kills all other cairo-docks and runs the new one with -o. Its a hack for now. |
Guest, Tuesday 17 June 2014 à 08:10
|
|
|
ekl@Taro:~$ grep backend ~/.config/cairo-dock/.cairo-dock
default backend=opengl
The launcher in the autostart directory was cairo-dock.desktop, which I erased while tweaking some things - I had edited it and I needed to stop it from running. It was the same as the usual .desktop file so I didn't bother with a backup.
It's odd that the default backend is opengl because its VERY obvious when the OpenGL isn't running. I have the flames on the icons and they don't work without -o ! |
Guest, Tuesday 17 June 2014 à 08:14
|
|
|
Update: Sorry to make so many posts - I need some sleep .. but I did the upgrade using the ppa you posted and this does indeed fix the '-o' problem!!
Issue resolved!
Now .. about the "only allow 1 instance" ? Some people may still want this feature and I'm keeping 1 xfce panel on and hidden (just in case!) as long as I can't turn on the autostart. |
matttbe, Wednesday 18 June 2014 à 03:18
|
|
Subscription date : 24 January 2009
Messages : 12573
|
Ideally, a "only allow 1 instance" flag would be nice. Yes maybe but if we add this feature, we'll have to be sure that it'll not cause other problems: what if the dock crash and doesn't restart itself? etc.
And note that it's will not fix your problem (just a workaround to avoid having 2 docks). But some people want to have 2 docks using 2 different settings. |
Installation problems | Problèmes à l'installation
|