Skip to content

Commit

Permalink
Обновлено: VSCodium
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegShchavelev committed Feb 16, 2024
1 parent 695b27e commit b6e9d53
Showing 1 changed file with 86 additions and 5 deletions.
91 changes: 86 additions & 5 deletions docs/apps/codium.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,99 @@ flatpak install flathub com.vscodium.codium

При наличии пакета [eepm](/epm), можно установить **VSCodium** одной командой:

```shell
epm play codium
```



## Запуск VSCodium в оконном интерфейсе Wayland

Запустить **VSCodium** через терминал указав дополнительные опции запуска:

```shell
codium --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland
::: code-group

```shell[Сизиф]
codium -enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto
```

```shell[Flatpak]
flatpak run com.vscodium.codium --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto
```
:::

Для запускаска приложения из панели приложений скопируйте `.desktop` в локальную папку пользователя и внесите изменения:

::: code-group

```shell[Сизиф]
codium --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto
```

```shell[Flatpak]
flatpak run com.vscodium.codium --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto
```
:::

Для запуска необходимо скопировать `.desktop` и внести изменения в параметра запуска:

::: code-group

```shell[Сизиф]
su -
cp /usr/share/applications/codium.desktop /home/current_user/.local/share/applications/codium.desktop
nano ~/.local/share/applications/codium.desktop
```

```shell[Flatpak]
su -
cp /var/lib/flatpak/app/com.vscodium.codium/current/active/export/share/applications/com.vscodium.codium.desktop /home/current_user/.local/share/applications/com.vscodium.codium.desktop
nano ~/.local/share/applications/com.vscodium.codium.desktop
```
:::

:::info
Замените в пути `current_user`, на текущего пользователя в системе.
:::

Вносим в значение параметра `Exec` дополнительные параметры запуска:

::: code-group

```shell[Сизиф]
[Desktop Entry]
Name=VSCodium
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=/usr/bin/codium --unity-launch %F // [!code --]
Exec=/usr/bin/codium --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto --unity-launch %F // [!code ++]
Icon=codium
Type=Application
StartupNotify=false
StartupWMClass=VSCodium
Categories=Utility;TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;application/x-codium-workspace;
Actions=new-empty-win
```

```shell[Flatpak]
[Desktop Entry]
Name=VSCodium
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=codium --file-forwarding com.vscodium.codium --unity-launch @@ %F @@ // [!code --]
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=codium --file-forwarding com.vscodium.codium --unity-launch --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations @@ %F @@ // [!code ++]
Icon=com.vscodium.codium
Type=Application
StartupNotify=false
StartupWMClass=VSCodium
Categories=TextEditor;Development;IDE;Utility;
MimeType=text/plain;inode/directory;application/x-codium-workspace;
Actions=new-empty-window;
Keywords=vscode;
X-Desktop-File-Install-Version=0.27
X-Flatpak=com.vscodium.codium
```
:::


## VSCodium не запускается или запускается с ошибками.

Expand Down

0 comments on commit b6e9d53

Please sign in to comment.