vino-server does not autostart on Ubuntu-GNOME

Bug #1607663 reported by Florian Apolloner on 2016-07-29
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Ubuntu GNOME
High
Unassigned
vino (Ubuntu)
High
Unassigned
Xenial
High
Unassigned

Bug Description

Impact
======
The Desktop Sharing option in GNOME's Settings apps silently doesn't work.

Test Case
=========
On the host computer:
1. In Ubuntu GNOME, open the Settings app.
2. Open the Sharing panel.
3. In the headerbar, turn on Sharing.
4. Click Screen Sharing. Turn it On. (If it was already On, turn it off then On.)

On the guest computer:
5. From a different computer connected to the same local network, attempt to connect to the host computer.

For this, you can install Vinagre. Click Connect. Use Protocol: VNC and enter the IP address for the test computer in the Host: field. Click Connect.

On the host computer:
6. You probably need to approve a popup message to allow the remote user to connect.

Regression Potential
====================
This only adds a symlinked NoDisplay=true .desktop to
/usr/share/applications/

Other Info
==========
The fix for Ubuntu 16.10 is a bit different. There we can just backport the systemd service file added to vino 3.22 since gnome-settings-daemon 3.22 handles sharing services via systemd user services.

I verified that the extra .service file does not affect the way vino-preferences works in Unity 16.10. It's just ignored and manually trying to start the service in Unity doesn't work either which is fine. For 17.04+ we should look at having Unity use the systemd user service too.

Original Bug Report with Workaround
===================================
Running gnome-settings-daemon -r --debug shows that it tries to locate vino-server.desktop which it cannot find and therefore fails to start. Looking at the debian package, a confirmed and working fix for Ubuntu 16.04 is: sudo ln -s /etc/xdg/autostart/vino-server.desktop /usr/share/applications/vino-server.desktop or only shipping that file in /usr/share/application

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in vino (Ubuntu):
status: New → Confirmed
Jeremy Bicha (jbicha) on 2016-10-02
Changed in vino (Ubuntu):
importance: Undecided → High
status: Confirmed → Triaged
Changed in vino (Ubuntu Xenial):
importance: Undecided → High
status: New → Triaged
Changed in ubuntu-gnome:
importance: Undecided → High
status: New → Triaged
Changed in vino (Ubuntu):
status: Triaged → Fix Committed
Jeremy Bicha (jbicha) on 2016-10-02
description: updated
Jeremy Bicha (jbicha) on 2016-10-02
Changed in vino (Ubuntu Xenial):
status: Triaged → In Progress
Changed in ubuntu-gnome:
status: Triaged → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package vino - 3.8.1-0ubuntu12

---------------
vino (3.8.1-0ubuntu12) yakkety; urgency=medium

  * Add git_add_systemd_service.patch:
    - Backport patch from 3.22 to add systemd service file for compatibility
      with gnome-settings-daemon (LP: #1607663)
  * debian/control.in:
    - Build-depend on systemd

 -- Jeremy Bicha <email address hidden> Sat, 01 Oct 2016 22:34:58 -0400

Changed in vino (Ubuntu):
status: Fix Committed → Fix Released
Jeremy Bicha (jbicha) on 2016-10-02
tags: added: xenial yakkety
Jeremy Bicha (jbicha) on 2016-10-03
description: updated

Hello Florian, or anyone else affected,

Accepted vino into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/vino/3.8.1-0ubuntu9.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in vino (Ubuntu Xenial):
status: In Progress → Fix Committed
tags: added: verification-needed
Florian Apolloner (apollo13) wrote :

I currently don't have access to any Ubuntu boxes, but will try as soon as I get access to one again.

Sebastien Bacher (seb128) wrote :

Did you have a chance to try that one?

Florian Apolloner (apollo13) wrote :

Sadly no, we switched to Unity for new deployments due to other issues. I currently do not run Gnome anymore on Ubuntu 16.04 :( But from looking at the diff, the patch should be okay -- when I tried it I actually symlinked it to see if it actually fixes it.

pasdVn (pasdvn) wrote :

Hi, I tested the proposed fix (vino_3.8.1-0ubuntu9.2). Vino is starting as intended now :-). Thank you for the fix!

tags: added: verification-done
removed: verification-needed
Jeremy Bicha (jbicha) wrote :

Thank you for testing the update!

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package vino - 3.8.1-0ubuntu9.2

---------------
vino (3.8.1-0ubuntu9.2) xenial; urgency=medium

  * Add debian/links to symlink the hidden vino autostart .desktop to
    /usr/share/applications/ which is needed for the Desktop Sharing feature
    in GNOME's Settings app to work. Thanks Florian Apolloner for the bug
    report and suggested fix. (LP: #1607663)

 -- Jeremy Bicha <email address hidden> Sat, 01 Oct 2016 22:57:04 -0400

Changed in vino (Ubuntu Xenial):
status: Fix Committed → Fix Released

The verification of the Stable Release Update for vino has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers