You are not logged in.
Pages: 1
Hi.
I've got the same problem that @donniezazen described here. One difference: he used XFCE, i'm using LXDE.
I added (like it's written in wiki)
cairo-compmgr &
in my ~/.xinitrc
but cairo doesn't start automatically when Linux starts.
I've tried to put this command before and after then
exec ck-launch-session startlxde
but it didn't help.
I have to execute the command
cairo-compmgr &
manually after each turning on the computer and it makes me tired.
Any ideas how can i enable cairo autostart?
p.s. Cairo also turned off when I go out from system to list of accounts and come back later.
p.p.s. Sorry for my bad english.
Last edited by avazor (2012-09-04 15:15:55)
Offline
I'm starting to understand the issue...
When i execute
cairo-compmgr &
manually, it show a long output + doesn't give me console focus back. CTRL+Z doesnt work. When i close the console cairo process dies.
I think the same happens when my Linux starts. Cairo steals focus, linux loader(?) takes it back and cairo dies.
How can i fix it?
Offline
cairo-compmgr &
output:
0,000009:
0,000072: remote volume monitor with dbus name org.gtk.Private.UDisks2VolumeMonitor is not supported
0,025745: ??:0 ccm_log_print_backtrace()
0,025839: ??:0 g_logv()
0,025967: ??:0 g_log()
0,026031: ??:0 g_io_module_query()
0,026101: ??:0 g_tls_server_connection_new()
0,026175: ??:0 g_once_impl()
0,026253: ??:0 g_tls_server_connection_new()
0,026329: ??:0 g_volume_monitor_get()
0,026406: ??:0 gtk_file_filter_filter()
0,026483: ??:0 g_type_create_instance()
0,026560: ??:0 g_object_unref()
0,026636: ??:0 g_object_newv()
0,026711: ??:0 g_object_new()
0,026787: ??:0 gtk_file_filter_filter()
0,026863: ??:0 gtk_file_chooser_button_get_focus_on_click()
0,026941: ??:0 g_type_create_instance()
0,027026: ??:0 g_object_unref()
0,027103: ??:0 gtk_file_chooser_button_get_focus_on_click()
0,027187: ??:0 g_object_newv()
0,027263: ??:0 g_object_new()
0,027347: ??:0 gtk_file_chooser_button_get_focus_on_click()
0,027424: ??:0 gtk_file_chooser_dialog_new_with_backend()
0,027500: ??:0 g_object_newv()
0,027576: ??:0 g_object_new()
0,027651: ??:0 gtk_file_chooser_button_get_focus_on_click()
0,027728: ??:0 g_object_newv()
0,027803: ??:0 g_object_new_valist()
0,027879: ??:0 g_object_new()
0,027954: ??:0 gtk_file_chooser_dialog_get_type()
0,028031: ??:0 gtk_file_chooser_dialog_new()Offline
I've solved the issue.
I forgot to install dbus. Now
cairo-compmgr &
starts without errors.
But still it doesn't autostart.
I've tried to put this command before and after then
exec ck-launch-session startlxde
in my ~/.xinitrc but it also didn't help.
Where should i put that command?
Offline
*not sure where to start*
Avazor, welcome to arch, using arch is a great way to learn a lot about how your system works - and (please don't take this the wrong way ) it seems you have a lot to learn about it. Start X is entirely different (and comes after) loading "linux". I hope you'll spend some time reading man pages and wikis to get more familiar with these processes. Again, this is not said in any way to mock, but simply to point out that you've got a journey in front of you - if you're up for it you'll gain much, but if not you might want to reconsider whether arch is the distro for you.
Anyhow, on you your issue. Dbus is now installed, good. But is it started? With initscripts dbus should be started both from rc.conf DAEMONS array and from xinitrc.
The "ck-launch-session" will start the dbus session for X, but this would not happen until after cairo attempts to start. Placing cairo-compgr after your exec startlxde line will do absolutely nothing.
So, my suggestions:
First, if dbus was not in you daemons array, put it there, reboot, and try starting X with "cairo-compmgr &" right before the line "exec ck-launch-session startlxde".
Second, if that still doesn't work it would suggest that cairo does not only need the dbus daemon running, but also the session. In this case there are a couple options. The best would be to put "cairo-compgr" into lxde's startup file. I don't recall where this file is - perhaps "~/.config/lxde/autostart", check the lxde man page or wiki for this.
PS also note the forum guidelines that advise using the 'edit' option to add additional data to your posts if there has been no other activity in the thread instead of "bumping" your thread with several new posts.
Last edited by Trilby (2012-09-05 11:33:25)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
First, if dbus was not in you daemons array
It is there.
try starting X with "cairo-compmgr &" right before the line "exec ck-launch-session startlxde".
It doesn't help.
The best would be to put "cairo-compgr" into lxde's startup file.
I've created .desktop file (with GUI menu editor):
[Desktop Entry]
Encoding=UTF-8
Name=Cairo Composite Manager
Comment=Cairo Composite Manager
Exec=cairo-compmgr
Icon=/usr/share/pixmaps/cairo-compmgr/cairo-compmgr.png
Terminal=false
Type=Application
StartupNotify=false
Categories=GNOME;GTK;System;
X-GNOME-Autostart-Phase=Desktop
X-GNOME-Autostart-Notify=trueand created symlink to it (like in wiki):
ln -s /usr/share/applications/cairo-compmgr.desktop ~/.config/autostart/
But it also doesnt work.
Again, when I run Cairo in the console, it is working only until console was closed.
I think in autostart script cairo starts succesfully, but immediately dies for the same reason.
I found the command nohup and i have tried it in console.
nohup cairo-compmgr &
This helps to Cairo not to die when console was closed.
But i dont want to use this command at the autostart, because I was told this decision is bad.
PS also note the forum guidelines that advise using the 'edit' option to add additional data to your posts if there has been no other activity in the thread instead of "bumping" your thread with several new posts.
Okay.
Last edited by avazor (2012-09-05 16:45:10)
Offline
Cool, it seems like you're reading all the right material - so to update my previous statements it looks like you'll be on track to do well with arch.
In theory the desktop file should be expected to work, but it is a bit clumsy. Have you tried the autostart file? The LXDE wiki indicates this is at ~/.config/lxsession/LXDE/autostart ~/.config/lxsession/LXDE/autostart (or can be created there if it doesn't exist).
Try adding this line to that file
@cairo-compmgrIf that fails you could try
@cairo-compmgr > ~/cario_errorwhich should create a log file at ~/cairo_errors that might have useful information.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
It doesn't work too.
Log file also didn't appear.
This is not surprising because the command started manually from console doesn't give any error output.
$ cairo-compmgr &
[1] 1008
$Offline
I had the same problem. Reading this suggests linking the program's .desktop in /usr/share/applications/ to ~/.config/autostart/. So, I did this:
$ ln -s /usr/share/applications/cairo-compmgr.desktop ~/.config/autostart/and that got it to work for me when I rebooted. Might be worth a try?
Offline
Pages: 1