File tree Expand file tree Collapse file tree 2 files changed +30
-8
lines changed Expand file tree Collapse file tree 2 files changed +30
-8
lines changed Original file line number Diff line number Diff line change @@ -30,17 +30,23 @@ apps:
30
30
extensions: [gnome]
31
31
desktop: eclipse.desktop
32
32
plugs:
33
- - personal-git-global
33
+ - personal-gitconfig
34
+ - personal-sshid
35
+ - git-plug
34
36
- personal-maven-cache
35
37
- personal-eclipse-config
36
38
- sources-dir
37
39
- network
38
40
39
41
plugs:
40
- personal-git-global :
42
+ personal-gitconfig :
41
43
interface: personal-files
42
44
read:
43
45
- $HOME/.gitconfig
46
+ personal-sshid:
47
+ interface: personal-files
48
+ read:
49
+ - $HOME/.ssh
44
50
personal-maven-cache:
45
51
interface: personal-files
46
52
write:
@@ -50,11 +56,16 @@ plugs:
50
56
write:
51
57
- $HOME/.eclipse
52
58
- $HOME/.swt
53
- - $HOME/ eclipse-workspace
59
+ # ln -s ~/snap/ eclipse-pde/current/ workspace/ ~/eclipse-workspace/
54
60
sources-dir:
55
61
interface: personal-files
56
62
write:
57
63
- $HOME/projs
64
+ git-plug:
65
+ interface: content
66
+ content: git-cli
67
+ target: $SNAP/git-snap
68
+ default-provider: git-confined
58
69
59
70
parts:
60
71
eclipse:
@@ -80,5 +91,11 @@ parts:
80
91
81
92
# https://bugzilla.mozilla.org/show_bug.cgi?id=1710326
82
93
layout:
83
- /usr/shar /libdrm:
94
+ /usr/share /libdrm:
84
95
bind: $SNAP/gnome-platform/usr/share/libdrm
96
+ $SNAP/usr/bin:
97
+ bind: $SNAP/git-snap/bin
98
+ /usr/libexec/git-core:
99
+ symlink: $SNAP/git-snap/git-core
100
+ /usr/share/git-core/templates:
101
+ symlink: $SNAP/git-snap/templates
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
- ECLIPSE_PACKAGE=$1
4
+ if [ -n $1 ]; then
5
+ ECLIPSE_PACKAGE=$1
6
+ fi
7
+
5
8
export ECLIPSE_PACKAGE=${ECLIPSE_PACKAGE:= ' eclipse-java' }
6
9
7
- ./set-eclipse-package.sh
10
+ . . /set-eclipse-package.sh
8
11
9
12
# snapcraft clean
10
13
# sudo less /var/snap/lxd/common/lxd/logs/lxd.log
11
14
snapcraft try --debug
12
15
13
16
sudo snap try prime # --devmode
14
17
15
- sudo snap connect $ECLIPSE_PACKAGE :personal-git-global
18
+ sudo snap connect $ECLIPSE_PACKAGE :personal-gitconfig
19
+ sudo snap connect $ECLIPSE_PACKAGE :personal-sshid
16
20
sudo snap connect $ECLIPSE_PACKAGE :personal-maven-cache
17
21
sudo snap connect $ECLIPSE_PACKAGE :personal-eclipse-config
18
22
sudo snap connect $ECLIPSE_PACKAGE :sources-dir
23
+ sudo snap connect $ECLIPSE_PACKAGE :git-plug git-confined
19
24
20
- snap run $ECLIPSE_PACKAGE
25
+ # snap run $ECLIPSE_PACKAGE
You can’t perform that action at this time.
0 commit comments