Skip to content

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

Closed
garyvdm opened this Issue Sep 20, 2011 · 7 comments

2 participants

@garyvdm
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
Owner
Keruspe commented Sep 20, 2011

Hi,
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
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
Owner
Keruspe commented Sep 21, 2011

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

@garyvdm
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

./autogen.sh
./configure
make
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: http://paste2.org/p/1664541

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
garyvdm commented Sep 22, 2011

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

@Keruspe
Owner
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
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.