File tree Expand file tree Collapse file tree
lib/snaps/test-snapd-desktop-file-ids Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- #! /bin/sh
1+ #! /bin/sh -e
22
33for dir in " $@ " ; do
44 ls " $dir "
Original file line number Diff line number Diff line change 1- #! /bin/sh
1+ #! /bin/sh -e
22
33for file in " $@ " ; do
44 cat " $file "
Original file line number Diff line number Diff line change 11[Desktop Entry]
2- Name =test-snapd-desktop.cmd
3- Comment =A desktop file for test-snapd-desktop.cmd
4- Exec =test-snapd-desktop.cmd
2+ Name =test-snapd-desktop-file-ids .cmd
3+ Comment =A desktop file for test-snapd-desktop-file-ids .cmd
4+ Exec =test-snapd-desktop-file-ids .cmd
55Terminal =true
66Type =Application
77X-SnapCommonID =org.example.MyCommonID
Original file line number Diff line number Diff line change 11[Desktop Entry]
2- Name =test-snapd-desktop.cmd
3- Comment =A desktop file for test-snapd-desktop.cmd
4- Exec =test-snapd-desktop.cmd
2+ Name =test-snapd-desktop-file-ids .cmd
3+ Comment =A desktop file for test-snapd-desktop-file-ids .cmd
4+ Exec =test-snapd-desktop-file-ids .cmd
55Terminal =true
66Type =Application
77X-SnapCommonID =org.example.NotListed
Original file line number Diff line number Diff line change 11[Desktop Entry]
2- Name =test-snapd-desktop.cmd
3- Comment =A desktop file for test-snapd-desktop.cmd
4- Exec =test-snapd-desktop.cmd
2+ Name =test-snapd-desktop-file-ids .cmd
3+ Comment =A desktop file for test-snapd-desktop-file-ids .cmd
4+ Exec =test-snapd-desktop-file-ids .cmd
55Terminal =true
66Type =Application
Original file line number Diff line number Diff line change 1+ [Desktop Entry]
2+ Name =test-snapd-desktop-file-ids.cmd
3+ Comment =A desktop file for test-snapd-desktop-file-ids.cmd
4+ Exec =test-snapd-desktop-file-ids.cmd
5+ Terminal =true
6+ Type =Application
Original file line number Diff line number Diff line change 11[Desktop Entry]
2- Name =test-snapd-desktop.cmd
3- Comment =A desktop file for test-snapd-desktop.cmd
4- Exec =test-snapd-desktop.cmd
2+ Name =test-snapd-desktop-file-ids .cmd
3+ Comment =A desktop file for test-snapd-desktop-file-ids .cmd
4+ Exec =test-snapd-desktop-file-ids .cmd
55Terminal =true
66Type =Application
Original file line number Diff line number Diff line change 11[Desktop Entry]
2- Name =test-snapd-desktop.cmd
3- Comment =A desktop file for test-snapd-desktop.cmd
4- Exec =test-snapd-desktop.cmd
2+ Name =test-snapd-desktop-file-ids .cmd
3+ Comment =A desktop file for test-snapd-desktop-file-ids .cmd
4+ Exec =test-snapd-desktop-file-ids .cmd
55Terminal =true
66Type =Application
Original file line number Diff line number Diff line change 11[Desktop Entry]
2- Name =test-snapd-desktop.cmd
3- Comment =A desktop file for test-snapd-desktop.cmd
4- Exec =test-snapd-desktop.cmd
2+ Name =test-snapd-desktop-file-ids .cmd
3+ Comment =A desktop file for test-snapd-desktop-file-ids .cmd
4+ Exec =test-snapd-desktop-file-ids .cmd
55Terminal =true
66Type =Application
Original file line number Diff line number Diff line change @@ -10,10 +10,44 @@ apps:
1010 check-dirs :
1111 command : bin/check-dirs
1212 plugs : [desktop, desktop-legacy]
13+ cmd :
14+ command : bin/check-files # doesn't matter
15+ common-id : org.example.Foo
16+ plugs :
17+ - desktop # really also a decoy
18+ - desktop-ids
19+ - desktop-decoy1
20+ - desktop-decoy2
21+ - desktop-decoy3
22+ - desktop-decoy4
23+ - desktop-decoy5
24+ - desktop-decoy6
25+ - desktop-decoy7
26+ - desktop-decoy8
1327
1428plugs :
15- desktop :
29+ desktop-ids :
30+ interface : desktop
1631 desktop-file-ids :
1732 - org.example.desktop
33+ - org.example.Foo.desktop
1834 - org.example.Fallback
19- - org.example.MyCommonID.desktop
35+ - org.example.NonexistentFile.desktop
36+ # Declare lots of desktop plugs without desktop-file-ids to make sure the
37+ # correct desktop file ID is chosen
38+ desktop-decoy1 :
39+ interface : desktop
40+ desktop-decoy2 :
41+ interface : desktop
42+ desktop-decoy3 :
43+ interface : desktop
44+ desktop-decoy4 :
45+ interface : desktop
46+ desktop-decoy5 :
47+ interface : desktop
48+ desktop-decoy6 :
49+ interface : desktop
50+ desktop-decoy7 :
51+ interface : desktop
52+ desktop-decoy8 :
53+ interface : desktop
You can’t perform that action at this time.
0 commit comments