Skip to content

Couldn't connect to GPaste daemon - daemon autostart not installed #5

garyvdm opened this Issue Sep 20, 2011 · 7 comments

2 participants

garyvdm commented Sep 20, 2011

On the latest trunk from Sat 17 Sep 2011, I see the following error in the gpaste menu:

(Couldn't connect to GPaste daemon)

ps -ef | grep gpasted reveals that it deamon is not running.

If I manually run /usr/libexec/gpaste/gpasted, and restart gnome-shell, then it works.

My understanding is that gpasted is started by the dbus daemon. I dug around for dbus log files, but could not find anything.

Keruspe commented Sep 20, 2011

Does it still happen if you restart your session ?
Does the daemon spawn if you run "gpaste" in a shell ?
Do you have a file named /etc/xdg/autostart/gpasted.desktop installed ?

Actually, the daemon autostarts when a dbus request is made, but for some reasons it doesn't work with gnome-shell's requests. There used to be a command which launched it in the gnome-shell extension, but I removed it in favor of an autostart .desktop file.

If you have it installed, can you try copying it to ~/.config/autostart to see if by chance it changes anything ?

Thx in advance

garyvdm commented Sep 21, 2011

There was no /etc/xdg/autostart/gpasted.desktop file. Rerunning sudo make install did not add the file.

Manually installing the fill fixed the problem.

@garyvdm garyvdm closed this Sep 21, 2011
@garyvdm garyvdm reopened this Sep 21, 2011
Keruspe commented Sep 21, 2011

I guess I know where this problem comes from.
Formerly, there was a AM_MAINTAINER_MODE in the
This caused the Makefile not to be always re generated
Re running and configure should fix the issue.
Can you confirm doing this solves it too and close if it does ?

garyvdm commented Sep 22, 2011

Sorry, this is still a bug.

This is what I did:

sudo make uninstall
sudo rm /etc/xdg/autostart/gpasted.desktop  # Manually remove manually installed file
pkill gpasted
pkill gnome-shell

git clean -dfx 
git checkout v1.6 # Might as well use release version

sudo make install

ls /etc/xdg/autostart # revivals that gpasted.desktop has not been copied.

Here is a full log of the last 5 commands:

I wish I could debug it, but I know very little about make.

@garyvdm garyvdm closed this Sep 22, 2011
@garyvdm garyvdm reopened this Sep 22, 2011
garyvdm commented Sep 22, 2011

Sorry about the close and reopens. I keep clicking on "Comment & Close" by mistake, and not "Comment".

Keruspe commented Sep 22, 2011

Actually, I'm installing the desktop file (as the standard says) to $(sysconfdir)/xdg/autostart
sysconfdif, by default, is $(prefix)/etc and prefix is by default /usr/local.
Most distributions (all of them ?) when packaging, run ./configure --prefix=/usr --sysconfdir=/etc (amongst others)
Can you retry passing this arguments to configure ? everything should be ok then.
(Btw, looking at the logs you pasted, it seems it installs the file at /usr/local/etc/xdg/autostart, which is what is expected when passing no argument to configure. I admit this is not ideal for autostart files not to be installed by default in the correct location, but... standards are standards...)

garyvdm commented Sep 22, 2011

Ah - yes --sysconfdir=/etc fixes it :-)

I see you have added a readme with install instrunctions. That is great!

@garyvdm garyvdm closed this Sep 22, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.