Merge pull request #3 from cdr/desktop-entry
Remove desktop entry instructions
This commit is contained in:
commit
c2151e5a30
18
README.md
18
README.md
|
@ -35,24 +35,6 @@ find and start the following IDEs if their binaries exist in your PATH:
|
|||
- monodevelop
|
||||
- emacs
|
||||
|
||||
For a cleaner experience, a [.desktop]() entry can be added into your
|
||||
`/usr/share/applications` to make the IDE discoverable by code-server. Adding the `.desktop`
|
||||
entry will render the applications Logo and name on the code-server dashboard.
|
||||
|
||||
### Desktop File
|
||||
The `.desktop` file gives code-server information about the IDE such as the name,
|
||||
where to find the logo to display, and what command to run to start the application.
|
||||
The following table contains the `.desktop` file fields that are required and recognized
|
||||
by code-server. If the required fields aren't set in your `.desktop` file, the IDE won't
|
||||
be discoverable by code-server.
|
||||
|
||||
| Field | Description | Required / Optional |
|
||||
|---|---|---|
|
||||
| Name | The name you would like to use for your application | Required |
|
||||
| Type | This must be set to `Application` for code-server to render it | Required |
|
||||
| Logo | The path to the logo you'd like code-server to use for displaying your IDE | Optional |
|
||||
| Exec | The path to the command that is used to start the IDE | Required |
|
||||
|
||||
### Required Packages
|
||||
The following packages are required in your image if you're using an IDE other than VSCode
|
||||
to ensure that it can communicate properly with code-server.
|
||||
|
|
|
@ -14,5 +14,5 @@ RUN yum update -y && yum install -y \
|
|||
RUN mkdir -p /opt/goland
|
||||
RUN curl -L https://download.jetbrains.com/go/goland-2019.3.3.tar.gz | tar -C /opt/goland --strip-components 1 -xzvf -
|
||||
|
||||
# Add a desktop file entry for goland.
|
||||
COPY goland.desktop /usr/share/applications/goland.desktop
|
||||
# Add a binary to the PATH that points to the goland startup script.
|
||||
RUN ln -s /opt/goland/bin/goland.sh /usr/bin/goland
|
||||
|
|
|
@ -13,5 +13,5 @@ RUN apt-get update && apt-get install -y \
|
|||
RUN mkdir -p /opt/goland
|
||||
RUN curl -L https://download.jetbrains.com/go/goland-2019.3.3.tar.gz | tar -C /opt/goland --strip-components 1 -xzvf -
|
||||
|
||||
# Add a desktop file entry for goland.
|
||||
COPY goland.desktop /usr/share/applications/goland.desktop
|
||||
# Add a binary to the PATH that points to the goland startup script.
|
||||
RUN ln -s /opt/goland/bin/goland.sh /usr/bin/goland
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
[Desktop Entry]
|
||||
Version=2019.3.3
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=GoLand
|
||||
Icon=/opt/goland/bin/goland.png
|
||||
Exec=/opt/goland/bin/goland.sh
|
|
@ -14,5 +14,5 @@ RUN yum update -y && yum install -y \
|
|||
RUN mkdir -p /opt/idea
|
||||
RUN curl -L https://download.jetbrains.com/idea/ideaIC-2019.3.3.tar.gz | tar -C /opt/idea --strip-components 1 -xzvf -
|
||||
|
||||
# Add a desktop file entry for intellij.
|
||||
COPY intellij.desktop /usr/share/applications/intellij.desktop
|
||||
# Add a binary to the PATH that points to the intellij startup script.
|
||||
RUN ln -s /opt/intellij/bin/intellij.sh /usr/bin/intellij-idea-ultimate
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
FROM ubuntu:18.04
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
curl \
|
||||
# The following libraries are required for the IDE to be able to communicate with
|
||||
# code-server through xserver messaging.
|
||||
libxtst6 \
|
||||
libxrender1 \
|
||||
libfontconfig1 \
|
||||
libxi6
|
||||
|
||||
# Install intellij.
|
||||
RUN mkdir -p /opt/idea
|
||||
RUN curl -L https://download.jetbrains.com/idea/ideaIC-2019.3.3.tar.gz | tar -C /opt/idea --strip-components 1 -xzvf -
|
||||
|
||||
# Add a desktop file entry for intellij.
|
||||
COPY intellij.desktop /usr/share/applications/intellij.desktop
|
|
@ -14,5 +14,5 @@ RUN yum update -y && yum install -y \
|
|||
RUN mkdir -p /opt/webstorm
|
||||
RUN curl -L https://download.jetbrains.com/webstorm/WebStorm-2019.3.3.tar.gz | tar -C /opt/webstorm --strip-components 1 -xzvf -
|
||||
|
||||
# Add a desktop file entry for webstorm.
|
||||
COPY webstorm.desktop /usr/share/applications/webstorm.desktop
|
||||
# Add a binary to the PATH that points to the webstorm startup script.
|
||||
RUN ln -s /opt/webstorm/bin/webstorm.sh /usr/bin/webstorm
|
||||
|
|
|
@ -13,5 +13,5 @@ RUN apt-get update && apt-get install -y \
|
|||
RUN mkdir -p /opt/webstorm
|
||||
RUN curl -L https://download.jetbrains.com/webstorm/WebStorm-2019.3.3.tar.gz | tar -C /opt/webstorm --strip-components 1 -xzvf -
|
||||
|
||||
# Add a desktop file entry for webstorm.
|
||||
COPY webstorm.desktop /usr/share/applications/webstorm.desktop
|
||||
# Add a binary to the PATH that points to the webstorm startup script.
|
||||
RUN ln -s /opt/webstorm/bin/webstorm.sh /usr/bin/webstorm
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
[Desktop Entry]
|
||||
Version=2019.3.3
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=WebStorm
|
||||
Icon=/opt/webstorm/bin/webstorm.png
|
||||
Exec=/opt/webstorm/bin/webstorm.sh
|
Loading…
Reference in New Issue