mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-18 23:09:42 +01:00
Merge pull request #239 from TheOneRing/win_app_id
install an app id on Windows, to enable Windows 8 notifications without ...
This commit is contained in:
commit
151fedaa44
@ -34,6 +34,9 @@
|
||||
|
||||
!define NSI_PATH "${SOURCE_PATH}/admin/win/nsi"
|
||||
|
||||
;define app id needed for Windows 8 notifications
|
||||
!define AppUserModelId org.tomahawk-player.Tomahawk
|
||||
|
||||
;-----------------------------------------------------------------------------
|
||||
; Installer version
|
||||
;-----------------------------------------------------------------------------
|
||||
@ -366,6 +369,7 @@ Section "Tomahawk Player" SEC_TOMAHAWK_PLAYER
|
||||
File "${MING_BIN}\libffi-6.dll"
|
||||
|
||||
; Snorenotify
|
||||
File "${MING_BIN}\SnoreToast.exe"
|
||||
File "${MING_BIN}\libsnore.dll"
|
||||
File "${MING_LIB}\libsnore\libsnore_backend_snarl.dll"
|
||||
File "${MING_LIB}\libsnore\libsnore_backend_snore.dll"
|
||||
@ -400,6 +404,7 @@ SectionGroup "Shortcuts"
|
||||
CreateDirectory "$SMPROGRAMS\Tomahawk"
|
||||
CreateShortCut "$SMPROGRAMS\Tomahawk\LICENSE.lnk" "$INSTDIR\LICENSE.txt"
|
||||
CreateShortCut "$SMPROGRAMS\Tomahawk\Tomahawk.lnk" "$INSTDIR\tomahawk.exe"
|
||||
WinShell::SetLnkAUMI "$SMPROGRAMS\Tomahawk\Tomahawk.lnk" "${AppUserModelId}"
|
||||
CreateShortCut "$SMPROGRAMS\Tomahawk\Release notes.lnk" "$INSTDIR\NOTES.txt"
|
||||
CreateShortCut "$SMPROGRAMS\Tomahawk\Uninstall.lnk" "$INSTDIR\uninstall.exe"
|
||||
SetShellVarContext current
|
||||
@ -544,6 +549,8 @@ Section Uninstall
|
||||
;Start menu shortcuts.
|
||||
!ifdef OPTION_SECTION_SC_START_MENU
|
||||
SetShellVarContext all
|
||||
WinShell::UninstAppUserModelId "${AppUserModelId}"
|
||||
WinShell::UninstShortcut "$SMPROGRAMS\Tomahawk\Tomahawk.lnk"
|
||||
RMDir /r "$SMPROGRAMS\Tomahawk"
|
||||
SetShellVarContext current
|
||||
!endif
|
||||
|
@ -81,7 +81,8 @@ SnoreNotifyPlugin::SnoreNotifyPlugin()
|
||||
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << m_snore->primaryNotificationBackend();
|
||||
|
||||
m_application = Snore::Application( qApp->applicationName(), m_defaultIcon );
|
||||
m_application.hints().setValue( "desktop-entry" ,"tomahawk" );
|
||||
m_application.hints().setValue( "windows_app_id", "org.tomahawk-player.Tomahawk" );
|
||||
m_application.hints().setValue( "desktop-entry", "tomahawk" );
|
||||
|
||||
addAlert( InfoNotifyUser, tr( "Notify User" ) );
|
||||
addAlert( InfoNowPlaying, tr( "Now Playing" ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user