Skip to content

SibrenVasse/deezer

Repository files navigation

Deezer Arch Linux package

These files are build instructions for the Arch Linux build system how to create an installable Deezer package for the desktop application. However, the patches are not specific to Archlinux, and can be used for other Linux environments.

For Windows, Deezer distributes a version of the Electron run time (Windows binary) and the source code of their application itself. The build process of this package extracts the application source from the Windows installer.

This package applies several patches for:

  • Compatibility with newer Electron versions
  • Compatibility with a Linux environment in general.
  • Fixing bugs

To install on Arch Linux, use your favourite AUR helper or build manually with:

git clone https://github.com/SibrenVasse/deezer
cd deezer
makepkg -si

Usage

Option Description
--start-in-tray Start the app in the tray (see patch)
--disable-systray Quit the app when the window is closed (see patch)
--keep-kernel Use the exact kernel version (see patch)
This feature impacts privacy.
--disable-features Disable some features (see patch)
--hide-offline-banner Hide the "Application is offline" banner that appears when using a VPN or DNS blocker (see patch)
--disable-animations Disable animations (see patch)
--disable-notifications Disable notifications (see patch)
--sync-theme Sync the app's theme (dark/light) to the OS theme (see patch)
--disable-hardware-acceleration Disable hardware acceleration (useful for systems with GPU issues) (see patch)
--log-level Set the log level (silly,debug,verbose,info,warn,error) (see patch)
--enable-wayland-ime Enable IME keyboard support on Wayland (use with --ozone-platform-hint=auto --wayland-text-input-version=3)
Environment variable Options Description
DZ_START_IN_TRAY yes,no Start the app in the tray (see patch)
DZ_DISABLE_SYSTRAY yes,no Quit the app when the window is closed (see patch)
DZ_KEEP_KERNEL yes,no Use the exact kernel version (see patch)
DZ_LOG_LEVEL silly...error Set the log level (see patch)
DZ_HIDE_OFFLINE_BANNER yes,no Hide the "Application is offline" banner (see patch)
DZ_DISABLE_ANIMATIONS yes,no Disable animations (see patch)
DZ_DISABLE_NOTIFICATIONS yes,no Disable notifications (see patch)
DZ_DEVTOOLS yes,no Enable the developer console (ctrl+shift+i)
DZ_SYNC_THEME yes,no Sync the app's theme to the OS theme (see patch)
DZ_DISABLE_HARDWARE_ACCELERATION yes,no Disable hardware acceleration (see patch)
DZ_TRAY_ICON /path/to/icon Force a custom icon path for the systray (see patch)

Debugging

Running the application from the commandline will show verbose logging.

deezer-desktop

To run the application with devtools by running

env DZ_DEVTOOLS=yes electron39 /usr/share/deezer/app.asar

To debug node, you can extract the source files to a directory and inspect the node process by attaching using the chromium debugging tools. (https://www.electronjs.org/docs/tutorial/debugging-main-process)

asar extract /usr/share/deezer/app.asar $dest
electron39 --inspect-brk=$port $dest

About

Deezer Archlinux AUR package

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages