Skip to content

Commit

Permalink
Merge pull request #1135 from alainm23/snap_related_fixes
Browse files Browse the repository at this point in the history
Various snap related changes
  • Loading branch information
alainm23 authored Feb 20, 2024
2 parents dd0bde9 + 1587a78 commit 62b9242
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ build-aux/.flatpak-builder
build-aux/io.github.alainm23.planify.Devel.flatpak
.flatpak-builder/
subprojects/gxml

*.snap
planify*txt
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@

<a href="https://flathub.org/apps/details/io.github.alainm23.planify" rel="noreferrer noopener" target="_blank"><img loading="lazy" draggable="false" width='240' alt='Download on Flathub' src='https://dl.flathub.org/assets/badges/flathub-badge-en.png' /></a>

<a href="https://snapcraft.io/planify">
<img alt="Get it from the Snap Store" src="https://snapcraft.io/static/images/badges/en/snap-store-black.svg" loading="lazy" width='240' draggable="false"/>
</a>

## 🛠 Compile

You'll need the following dependencies:
Expand Down
2 changes: 1 addition & 1 deletion src/Dialogs/Preferences/PreferencesWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ public class Dialogs.Preferences.PreferencesWindow : Adw.PreferencesWindow {

private Adw.NavigationPage get_quick_add_page () {
var settings_header = new Dialogs.Preferences.SettingsHeader (_("Quick Add"));
string quick_add_command = "flatpak run --command=io.github.alainm23.planify.quick-add %s".printf (Build.APPLICATION_ID);
string quick_add_command = GLib.Environment.get_variable("SNAP") != "" ? "planify.quick-add" : "flatpak run --command=io.github.alainm23.planify.quick-add %s".printf (Build.APPLICATION_ID);

var description_label = new Gtk.Label (
_("Use Quick Add to create to-dos from anywhere on your desktop with just a few keystrokes. You don’t even have to leave the app you’re currently in.") // vala-lint=line-length
Expand Down

0 comments on commit 62b9242

Please sign in to comment.