Skip to content

Commit

Permalink
Make it possible to open Amazon Music like a PWA app (#812)
Browse files Browse the repository at this point in the history
Install browser shortcut for Amazon Music like a PWA

This app-id is not a common? I can't find from internet. 
Guessing amazon music does not officially support PWA. So this ID might be generated by chrome.
  • Loading branch information
kachick authored Oct 2, 2024
1 parent 42bbf88 commit 1af42a4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config/pwa/amazon_music.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=Amazon Music
Exec=google-chrome-stable "--profile-directory=Profile 1" --app-id=dojpeppajphepagdhclblkkjnoaeamee
Icon=chrome-dojpeppajphepagdhclblkkjnoaeamee-Profile_1
StartupWMClass=crx_dojpeppajphepagdhclblkkjnoaeamee
4 changes: 4 additions & 0 deletions home-manager/gnome.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

let
spotify-pwa-file = "chrome-pjibgclleladliembfgfagdaldikeohf-Default.desktop";
amazon_music-pwa-file = "chrome-dojpeppajphepagdhclblkkjnoaeamee-Profile_1.desktop";
in
{
xdg.dataFile."applications/${spotify-pwa-file}".source = ../config/pwa/spotify.desktop;
xdg.dataFile."applications/${amazon_music-pwa-file}".source = ../config/pwa/amazon_music.desktop;

# https://github.com/nix-community/home-manager/blob/release-24.05/modules/misc/dconf.nix
dconf = {
Expand Down Expand Up @@ -46,6 +48,7 @@ in
"firefox.desktop"
"google-chrome.desktop"
"io.gitlab.news_flash.NewsFlash.desktop"
amazon_music-pwa-file
"org.gnome.Rhythmbox3.desktop"
"org.gnome.Nautilus.desktop"
];
Expand Down Expand Up @@ -241,6 +244,7 @@ in
"dev.zed.Zed.desktop:2"
# TODO: Add vscode here as zed-editor
"${spotify-pwa-file}:3"
"${amazon_music-pwa-file}:3"
"org.gnome.Rhythmbox3.desktop:3"
];
};
Expand Down

0 comments on commit 1af42a4

Please sign in to comment.