Winston Hoy ревизій цього gist 3 years ago. До ревизії
1 file changed, 2 insertions, 23 deletions
migrate-atom-to-pulsar.sh
| @@ -1,6 +1,5 @@ | |||
| 1 | 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) | |
| 2 | + | # NOTE: This worked for my migration from Pop!_OS 22.04 Atom 1.63.1 which was installed with flatpak (user) | |
| 4 | 3 | ||
| 5 | 4 | # First, download and install the deb package found here https://pulsar-edit.dev/download.html | |
| 6 | 5 | ||
| @@ -8,24 +7,4 @@ | |||
| 8 | 7 | rsync -av ~/.var/app/io.atom.Atom/data/ ~/.pulsar/ | |
| 9 | 8 | ||
| 10 | 9 | # 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 | |
| 10 | + | #rsync -av ~/.atom/ ~/.pulsar/ | |
Winston Hoy ревизій цього gist 3 years ago. До ревизії
Без змін
Winston Hoy ревизій цього gist 3 years ago. До ревизії
1 file changed, 31 insertions
migrate-atom-to-pulsar.sh(файл створено)
| @@ -0,0 +1,31 @@ | |||
| 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 | |