It might be a wrong yaml file config? Not matching the name of the snap
with the apps: definition.

```
 name: level9 # you probably want to 'snapcraft register <name>'

 apps:
  glklevel9:
```

that make the two .desktop files to differ in one line:

level9.dektop
 `Exec=level9`

gltklevel9.desktop (generated by snapcraft)
 `Exec=level9.glklevel9 %U`


Full yaml
```
name: level9 # you probably want to 'snapcraft register <name>'
version: '0.13' # just for humans, typically '1.2+git' or '1.3.2'
summary: Interpreter for Level 9 interactive fiction games # 79 char long 
summary
description: |
  Interpreter to play Level 9 Computing games.
  Files format accepted: .dat and .sna
  Save and restore are supported. Images works if picture files are present.

grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots

apps:
 glklevel9:
    command: desktop-launch $SNAP/gtklevel9
    plugs: [x11, unity7, home]
    desktop: ./snap/gui/level9.desktop


parts:
 gtklevel9:
    # See 'snapcraft plugins'
    plugin: make
    source: ./code
    after: [desktop-gtk2]

 desktop-gtk2:
  source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
  stage-packages:
   - light-themes
   - ttf-ubuntu-font-family
   - libgdk-pixbuf2.0-0
   - dmz-cursor-theme
   - shared-mime-info
```

full glklevel9.desktop
```
[Desktop Entry]
Name=Level9
X-GNOME-FullName=Level9 interpreter
Comment=Interactive Fiction Interpreter for games of Level9 Computing company.
Categories=Utility;
Exec=level9.glklevel9 %U
Icon=${SNAP}/snap/gui/icon.svg
Terminal=false
Type=Application
Version=0.4
```

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1666873

Title:
  Snap icon is not visible when called from terminal but it does when
  called from dash

To manage notifications about this bug go to:
https://bugs.launchpad.net/snappy/+bug/1666873/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to