[Pkg-owncloud-commits] [owncloud-client] 21/164: Install shortcuts for all users
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sun Mar 22 11:55:50 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 56a907128a7bfaeb7731389377836d183bba81ee
Author: Daniel Molkentin <danimo at owncloud.com>
Date: Mon Oct 27 12:25:48 2014 -0400
Install shortcuts for all users
Implements #2413
---
cmake/modules/NSIS.template.in | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/cmake/modules/NSIS.template.in b/cmake/modules/NSIS.template.in
index 50a8fe4..45c52f8 100644
--- a/cmake/modules/NSIS.template.in
+++ b/cmake/modules/NSIS.template.in
@@ -512,7 +512,9 @@ SectionGroup $SectionGroup_Shortcuts
SetDetailsPrint textonly
DetailPrint $OPTION_SECTION_SC_DESKTOP_DetailPrint
SetDetailsPrint listonly
+ SetShellVarContext all
CreateShortCut "$DESKTOP\${APPLICATION_NAME}.lnk" "$INSTDIR\${APPLICATION_EXECUTABLE}"
+ SetShellVarContext current
${MementoSectionEnd}
!endif
@@ -521,8 +523,10 @@ SectionGroup $SectionGroup_Shortcuts
SectionIn 1 2
SetDetailsPrint textonly
DetailPrint $OPTION_SECTION_SC_QUICK_LAUNCH_DetailPrint
+ SetShellVarContext all
SetDetailsPrint listonly
CreateShortCut "$QUICKLAUNCH\${APPLICATION_NAME}.lnk" "$INSTDIR\${APPLICATION_EXECUTABLE}"
+ SetShellVarContext current
${MementoSectionEnd}
!endif
@@ -672,18 +676,22 @@ Section Uninstall
;Desktop shortcut.
!ifdef OPTION_SECTION_SC_DESKTOP
${If} ${HasSection} SEC_DESKTOP
+ SetShellVarContext all
${If} ${FileExists} "$DESKTOP\${APPLICATION_NAME}.lnk"
Delete "$DESKTOP\${APPLICATION_NAME}.lnk"
${EndIf}
+ SetShellVarContext current
${EndIf}
!endif
;Quick Launch shortcut.
!ifdef OPTION_SECTION_SC_QUICK_LAUNCH
${If} ${HasSection} SEC_QUICK_LAUNCH
+ SetShellVarContext all
${If} ${FileExists} "$QUICKLAUNCH\${APPLICATION_NAME}.lnk"
Delete "$QUICKLAUNCH\${APPLICATION_NAME}.lnk"
${EndIf}
+ SetShellVarContext current
${EndIf}
!endif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list