Skip to content

Commit 35ace11

Browse files
committed
Update app's metainfo and fix importing cfg in CLI
1 parent 72414a1 commit 35ace11

File tree

3 files changed

+14
-25
lines changed

3 files changed

+14
-25
lines changed

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
<h1>Save Desktop</h1>
44
<p><i>Save your desktop configuration</i></p>
55

6-
<a href='https://flathub.org/apps/io.github.vikdevelop.SaveDesktop'><img width='180' alt='Download on Flathub' src='https://flathub.org/api/badge?svg&locale=en&light'/></a>
6+
<a href='https://flathub.org/apps/io.github.vikdevelop.SaveDesktop'><img width='180' alt="Download on Flathub" src='https://flathub.org/api/badge?svg&locale=en&light'/></a>
77

88
![License: GPL-3.0](https://img.shields.io/badge/License-GPLv3-blue.svg)
99
![Translations](https://hosted.weblate.org/widget/vikdevelop/savedesktop/svg-badge.svg)
1010
</div>
1111

1212
## 🚀 About
1313

14-
**Save Desktop** is a cross-desktop tool to **back up, restore and sync your entire Linux desktop setup**.
14+
**Save Desktop** is a cross-desktop tool to **back up, restore and sync your entire Linux desktop setup**.
1515
It can save your themes, icons, fonts, settings, wallpapers (even dynamic ones), Flatpak apps and user data – and bring them back in just a few clicks.
1616

1717
## 📸 Screenshots
@@ -75,7 +75,7 @@ It can save your themes, icons, fonts, settings, wallpapers (even dynamic ones),
7575
- **Cosmic (Old)**
7676
```
7777
- ~/.config/pop-shell
78-
- ~/.local/share/gnome-shell
78+
- ~/.local/share/nautilus
7979
```
8080
- **Cosmic (New)**
8181
```
@@ -128,19 +128,18 @@ It can save your themes, icons, fonts, settings, wallpapers (even dynamic ones),
128128

129129
### Stable releases
130130

131-
> [!NOTE]
132-
> **Flathub**: The latest stable releases (recommended)
133-
>
134-
> <a href='https://flathub.org/apps/io.github.vikdevelop.SaveDesktop'><img width='180' alt='Download on Flathub' src='https://flathub.org/api/badge?svg&locale=en&light'/></a>
131+
**Flathub** _(recommended)_: The latest stable releases
135132

136-
> [!IMPORTANT]
137-
> **Snap Store**: Frozen at version `3.6.2-hotfix`, no updates will be provided. Active development continues on Flathub (see above).
133+
<a href='https://flathub.org/apps/io.github.vikdevelop.SaveDesktop'><img width='180' alt='Download on Flathub' src='https://flathub.org/api/badge?svg&locale=en&light'/></a>
134+
135+
> [!WARNING]
136+
> **Snap Store**: Frozen at version `3.6.2-hotfix`, no updates will be provided. Active development continues on **Flathub** (see above).
138137
>
139138
> <a href="https://snapcraft.io/savedesktop"><img alt="Get it from the Snap Store" src="https://snapcraft.io/en/light/install.svg" /></a>
140139
141140
### Beta releases
142141
- Flathub Beta:
143-
- [**Install from Flathub Beta**](https://dl.flathub.org/beta-repo/appstream/io.github.vikdevelop.SaveDesktop.flatpakref)
142+
- [**Install from file**](https://dl.flathub.org/beta-repo/appstream/io.github.vikdevelop.SaveDesktop.flatpakref)
144143

145144
* GNOME Builder (for development):
146145

savedesktop.doap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<name xml:lang="en">Save Desktop</name>
88
<shortdesc xml:lang="en">Save your desktop configuration</shortdesc>
9-
<description xml:lang="en">Save Desktop lets you save your current configuration (themes, icons, wallpapers, all desktop environment settings, extensions, etc.) with one click.</description>
9+
<description xml:lang="en">Save Desktop helps you back up, restore, and synchronize your entire desktop environment with ease. It saves and imports your themes, icons, fonts, wallpapers, extensions, desktop folder, Flatpak apps and their data, as well as other desktop settings — all in one archive. Choose what to include and keep your setup consistent across devices with automatic periodic saves and synchronization.</description>
1010
<homepage rdf:resource="https://github.com/vikdevelop/savedesktop" />
1111
<bug-database rdf:resource="https://github.com/vikdevelop/savedesktop/issues"/>
1212
<download-page rdf:resource="https://flathub.org/apps/details/io.github.vikdevelop.SaveDesktop" />

src/savedesktop.in

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -69,22 +69,12 @@ elif cmd.FOLDER_PATH: # save a configuration without an archive
6969
os.makedirs(archive_name, exist_ok=True)
7070
subprocess.run([sys.executable, "-m", "savedesktop.core.archive", archive_mode, archive_name], env={**os.environ, "PYTHONPATH": f"{pkgdatadir}"})
7171
elif cmd.CFG_ARCHIVE_PATH: # import a configuration from a file, or folder
72-
if not os.path.exists(file_path):
73-
print(f"File not found: {file_path}")
74-
exit(1)
75-
76-
if file_path.endswith('.sd.zip'):
77-
os.system(f"unzip {file_path}")
78-
elif file_path.endswith('.sd.tar.gz'):
79-
os.system(f"tar -xf {file_path}")
80-
elif os.path.exists(f"{file_path}/.folder.sd"):
81-
shutil.copytree(file_path, f"{CACHE}/import_config", dirs_exist_ok=True, ignore_dangling_symlinks=True)
82-
else:
83-
print("Unsupported file type. Use *.sd.zip, *.sd.tar.gz or folder which contains the \".folder.sd\" file.")
84-
exit(1)
85-
8672
archive_mode = "--unpack"
8773
archive_name = f"{cmd.CFG_ARCHIVE_PATH}"
74+
if not os.path.exists(archive_name):
75+
print(f"File not found: {archive_name}")
76+
exit(1)
77+
8878
subprocess.run([sys.executable, "-m", "savedesktop.core.archive", archive_mode, archive_name], env={**os.environ, "PYTHONPATH": f"{pkgdatadir}"})
8979
else: # show the app window
9080
import gi

0 commit comments

Comments
 (0)