Merge lp:~ted/unity8-desktop-session/snap-session into lp:unity8-desktop-session

Proposed by Ted Gould
Status: Merged
Approved by: Christopher Townsend
Approved revision: 110
Merged at revision: 104
Proposed branch: lp:~ted/unity8-desktop-session/snap-session
Merge into: lp:unity8-desktop-session
Diff against target: 154 lines (+74/-4)
9 files modified
Makefile.am (+1/-1)
configure.ac (+2/-0)
data/Makefile.am (+4/-2)
data/unity8-snap.desktop (+6/-0)
debian/control (+19/-1)
debian/unity8-session-snap.install (+4/-0)
scripts/Makefile.am (+22/-0)
scripts/unity8-snap-install (+7/-0)
scripts/unity8-snap-install.1 (+9/-0)
To merge this branch: bzr merge lp:~ted/unity8-desktop-session/snap-session
Reviewer Review Type Date Requested Status
Christopher Townsend Approve
Stephen M. Webb (community) Approve
Review via email: mp+305643@code.launchpad.net

Commit message

Add a Unity8 Session that is contained in a snap

Description of the change

There once was a session *snap* *snap*
That didn't have desktop features early enough to make project management happy *snap* *snap*
So they had to come up with other shipping solutions *snap* *snap*
And this MR is part of that *snap* *snap*

To post a comment you must log in.
Revision history for this message
Stephen M. Webb (bregma) wrote :

I'd like to see a couple of changes, see inline comments.

review: Needs Fixing
Revision history for this message
Christopher Townsend (townsend) wrote :

Maybe call the script unity8-snap-install to differentiate that it is for installing the U8 snap session.

Also, although not necessary, but I think a small manpage just explaining what the unity8(-snap)-install script is doing would be nice. Plus, that would get lintian off our back for this:)

Revision history for this message
Christopher Townsend (townsend) wrote :

I built the package, added a local apt repository with the 3 debs generated, then tried to install unity8-session-snap and apt wants to remove the following packages:

The following packages will be REMOVED:
  dbus-user-session ubuntu-desktop ubuntu-session unity8-desktop-session

I don't thikn we want the ubuntu-desktop task and ubuntu-session packages removed. This is due to the Conflicts of dbus-user-session. I don't entirely understand why that is a Conflicts...

review: Needs Information
102. By Ted Gould

Catching up to trunk

103. By Ted Gould

Putting on different lines

104. By Ted Gould

Use dash instead of bash

105. By Ted Gould

Changing name to unity8-snap-install

106. By Ted Gould

Adding a man page

Revision history for this message
Ted Gould (ted) wrote :

Updated from comments.

Yes, we don't want it to conflict long term, that's where things are today. We need to fix the snap before we can remove those.

107. By Ted Gould

Don't conflict with user session

Revision history for this message
Christopher Townsend (townsend) wrote :

Quicky inline nitpick. Will try it out soon.

108. By Ted Gould

Removing comma

Revision history for this message
Stephen M. Webb (bregma) :
review: Approve
109. By Ted Gould

New icon for the snap

110. By Ted Gould

Comment out conflicts for now

Revision history for this message
Ted Gould (ted) wrote :

Removed the conflicts until the snap becomes more usable. Changed the icon so you can tell the difference. Both for zesty until the snap becomes a useful solution.

Revision history for this message
Christopher Townsend (townsend) wrote :

Ok, approving and we'll let it all shake out.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Makefile.am'
--- Makefile.am 2013-11-26 21:07:31 +0000
+++ Makefile.am 2016-10-25 16:11:22 +0000
@@ -17,5 +17,5 @@
1717
18AM_MAKEFLAGS = --no-print-directory18AM_MAKEFLAGS = --no-print-directory
1919
20SUBDIRS = data20SUBDIRS = data scripts
21EXTRA_DIST = autogen.sh21EXTRA_DIST = autogen.sh
2222
=== modified file 'configure.ac'
--- configure.ac 2016-02-11 15:29:21 +0000
+++ configure.ac 2016-10-25 16:11:22 +0000
@@ -25,4 +25,6 @@
2525
26AC_CONFIG_FILES([Makefile])26AC_CONFIG_FILES([Makefile])
27AC_CONFIG_FILES([data/Makefile])27AC_CONFIG_FILES([data/Makefile])
28AC_CONFIG_FILES([scripts/Makefile])
29
28AC_OUTPUT30AC_OUTPUT
2931
=== modified file 'data/Makefile.am'
--- data/Makefile.am 2016-07-14 14:26:54 +0000
+++ data/Makefile.am 2016-10-25 16:11:22 +0000
@@ -24,13 +24,15 @@
24 sensors.txt24 sensors.txt
2525
26dist_icon_DATA = \26dist_icon_DATA = \
27 custom_unity8_badge.png27 custom_unity8_badge.png \
28 custom_unity8-snap_badge.png
2829
29dist_lightdm_conf_DATA = \30dist_lightdm_conf_DATA = \
30 45-unity8.conf31 45-unity8.conf
3132
32dist_lightdm_session_DATA = \33dist_lightdm_session_DATA = \
33 unity8.desktop34 unity8.desktop \
35 unity8-snap.desktop
3436
35dist_bin_SCRIPTS = \37dist_bin_SCRIPTS = \
36 lightdm-unity8-session38 lightdm-unity8-session
3739
=== added file 'data/custom_unity8-snap_badge.png'
38Binary files data/custom_unity8-snap_badge.png 1970-01-01 00:00:00 +0000 and data/custom_unity8-snap_badge.png 2016-10-25 16:11:22 +0000 differ40Binary files data/custom_unity8-snap_badge.png 1970-01-01 00:00:00 +0000 and data/custom_unity8-snap_badge.png 2016-10-25 16:11:22 +0000 differ
=== added file 'data/unity8-snap.desktop'
--- data/unity8-snap.desktop 1970-01-01 00:00:00 +0000
+++ data/unity8-snap.desktop 2016-10-25 16:11:22 +0000
@@ -0,0 +1,6 @@
1[Desktop Entry]
2Name=Unity8
3Exec=/snap/bin/unity8-session
4TryExec=/snap/bin/unity8-session
5Type=Application
6X-LightDM-Session-Type=mir
07
=== modified file 'debian/control'
--- debian/control 2016-09-28 13:56:39 +0000
+++ debian/control 2016-10-25 16:11:22 +0000
@@ -10,7 +10,9 @@
1010
11Package: unity8-desktop-session11Package: unity8-desktop-session
12Architecture: all12Architecture: all
13Conflicts: ubuntu-desktop-mir13Conflicts: ubuntu-desktop-mir,
14# unity8-session-snap
15# Remove conflicts while in development
14Replaces: unity8-desktop-session-mir (<< 1.0.13)16Replaces: unity8-desktop-session-mir (<< 1.0.13)
15Breaks: unity8-desktop-session-mir (<< 1.0.13)17Breaks: unity8-desktop-session-mir (<< 1.0.13)
16Depends: mir-graphics-drivers-desktop,18Depends: mir-graphics-drivers-desktop,
@@ -45,3 +47,19 @@
45Priority: extra47Priority: extra
46Description: transitional dummy package48Description: transitional dummy package
47 This is a transitional dummy package. It can safely be removed.49 This is a transitional dummy package. It can safely be removed.
50
51Package: unity8-session-snap
52Architecture: all
53# Conflicts: unity8-desktop-session
54# Remove conflicts while in development
55Depends: lightdm,
56 mir-graphics-drivers-desktop,
57 snapd,
58 unity-system-compositor,
59 ${misc:Depends}
60Description: Unity8 session from a Snap
61 Provides the files to setup LightDM to run a Snap based Unity8
62 session. It also, as part of it's execution, installs that snap.
63 .
64 This package is provided for evaluation and demonstration purposes only.
65
4866
=== added file 'debian/unity8-session-snap.install'
--- debian/unity8-session-snap.install 1970-01-01 00:00:00 +0000
+++ debian/unity8-session-snap.install 2016-10-25 16:11:22 +0000
@@ -0,0 +1,4 @@
1usr/share/lightdm/sessions/unity8-snap.desktop
2usr/share/unity-greeter/custom_unity8-snap_badge.png
3usr/share/man/man1/unity8-snap-install.*
4usr/bin/unity8-snap-install
05
=== added directory 'scripts'
=== added file 'scripts/Makefile.am'
--- scripts/Makefile.am 1970-01-01 00:00:00 +0000
+++ scripts/Makefile.am 2016-10-25 16:11:22 +0000
@@ -0,0 +1,22 @@
1# This file is part of Unity8-session, a desktop session configration
2# package.
3#
4# Copyright 2016 Canonical Ltd.
5#
6# unity8-desktop-session is free software: you can redistribute it and/or modify
7# it under the terms of the GNU General Public License version 3, as published by
8# the Free Software Foundation.
9#
10# This program is distributed in the hope that it will be useful, but WITHOUT ANY
11# WARRANTY; without even the implied warranties of MERCHANTABILITY, SATISFACTORY
12# QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
13# License for more details.
14#
15# You should have received a copy of the GNU General Public License along with
16# this program. If not, see <http://www.gnu.org/licenses/>.
17
18dist_bin_SCRIPTS = \
19 unity8-snap-install
20
21dist_man_MANS = \
22 unity8-snap-install.1
023
=== added file 'scripts/unity8-snap-install'
--- scripts/unity8-snap-install 1970-01-01 00:00:00 +0000
+++ scripts/unity8-snap-install 2016-10-25 16:11:22 +0000
@@ -0,0 +1,7 @@
1#!/bin/sh
2
3if [ -f ~/.snap/auth.json ] ; then
4 snap install --devmode --channel=edge unity8-session
5else
6 sudo snap install --devmode --channel=edge unity8-session
7fi
08
=== added file 'scripts/unity8-snap-install.1'
--- scripts/unity8-snap-install.1 1970-01-01 00:00:00 +0000
+++ scripts/unity8-snap-install.1 2016-10-25 16:11:22 +0000
@@ -0,0 +1,9 @@
1.TH unity8-snap-install "1" "Oct 2016" "unity8-snap-install 1.0.13" "User Commands"
2
3.SH NAME
4unity8-snap-install \- install the Unity8 session snap from snap store
5
6.SH DESCRIPTION
7usage: unity8\-snap\-install
8.PP
9Install the Unity8 session snap with the proper arguments passed to the snap command

Subscribers

People subscribed via source and target branches