migrate-atom-to-pulsar.sh
· 1.0 KiB · Bash
Неформатований
#! /usr/bin/env bash
# NOTE: this is not meant to be run unattended, read each line and copy and paste as necessary
# This worked for my migration from Pop!_OS 22.04 (deb based) Atom 1.63.1 installed with flatpak (user)
# First, download and install the deb package found here https://pulsar-edit.dev/download.html
# for flatpak Atom migration to Pulsar deb - copy configuration and packages
rsync -av ~/.var/app/io.atom.Atom/data/ ~/.pulsar/
# for deb Atom migration to Pulsar deb - copy configuration and packages
#rsync -av ~/.atom/ ~/.pulsar/
# fix for GPU error
cat <<EOF > ~/.local/bin/pulsar
#! /usr/bin/env bash
/usr/bin/pulsar --disable-gpu-sandbox "\$@"
EOF
chmod u+x ~/.local/bin/pulsar
# write a local user desktop file where the icon is fixed
cat <<EOF > ~/.local/share/applications/pulsar.desktop
[Desktop Entry]
Name=Pulsar
Exec=/usr/bin/pulsar %U
Terminal=false
Type=Application
Icon=/opt/Pulsar/resources/pulsar.png
StartupWMClass=Pulsar
Comment=A Community-led Hyper-Hackable Text Editor
Categories=Development;
EOF
| 1 | #! /usr/bin/env bash |
| 2 | # NOTE: this is not meant to be run unattended, read each line and copy and paste as necessary |
| 3 | # This worked for my migration from Pop!_OS 22.04 (deb based) Atom 1.63.1 installed with flatpak (user) |
| 4 | |
| 5 | # First, download and install the deb package found here https://pulsar-edit.dev/download.html |
| 6 | |
| 7 | # for flatpak Atom migration to Pulsar deb - copy configuration and packages |
| 8 | rsync -av ~/.var/app/io.atom.Atom/data/ ~/.pulsar/ |
| 9 | |
| 10 | # for deb Atom migration to Pulsar deb - copy configuration and packages |
| 11 | #rsync -av ~/.atom/ ~/.pulsar/ |
| 12 | |
| 13 | # fix for GPU error |
| 14 | cat <<EOF > ~/.local/bin/pulsar |
| 15 | #! /usr/bin/env bash |
| 16 | /usr/bin/pulsar --disable-gpu-sandbox "\$@" |
| 17 | EOF |
| 18 | chmod u+x ~/.local/bin/pulsar |
| 19 | |
| 20 | # write a local user desktop file where the icon is fixed |
| 21 | cat <<EOF > ~/.local/share/applications/pulsar.desktop |
| 22 | [Desktop Entry] |
| 23 | Name=Pulsar |
| 24 | Exec=/usr/bin/pulsar %U |
| 25 | Terminal=false |
| 26 | Type=Application |
| 27 | Icon=/opt/Pulsar/resources/pulsar.png |
| 28 | StartupWMClass=Pulsar |
| 29 | Comment=A Community-led Hyper-Hackable Text Editor |
| 30 | Categories=Development; |
| 31 | EOF |
| 32 |