Naposledy aktivní 1 day ago

Revize 73deb231115990923777102dbf3e61a6ad5608cb

migrate-atom-to-pulsar.sh Raw
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
8rsync -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
14cat <<EOF > ~/.local/bin/pulsar
15#! /usr/bin/env bash
16/usr/bin/pulsar --disable-gpu-sandbox "\$@"
17EOF
18chmod u+x ~/.local/bin/pulsar
19
20# write a local user desktop file where the icon is fixed
21cat <<EOF > ~/.local/share/applications/pulsar.desktop
22[Desktop Entry]
23Name=Pulsar
24Exec=/usr/bin/pulsar %U
25Terminal=false
26Type=Application
27Icon=/opt/Pulsar/resources/pulsar.png
28StartupWMClass=Pulsar
29Comment=A Community-led Hyper-Hackable Text Editor
30Categories=Development;
31EOF
32