Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTobias Haeussler <mail@tobiashaeussler.com>2016-10-29 23:06:03 +0300
committerOlivier Goffart <olivier@woboq.com>2016-11-14 14:16:58 +0300
commit0c0a3ca0a52099bef0234a9db04486a1cfcdb9a5 (patch)
tree0a6b9dd02754887cf56aa131665021ca436a9b19 /src
parent676ad530e75ccef584ac54d5ba55a5444c93a4eb (diff)
Add manifest file on Windows to make the application UAC aware.
Diffstat (limited to 'src')
-rw-r--r--src/gui/CMakeLists.txt4
-rw-r--r--src/gui/manifest-mingw.rc3
-rw-r--r--src/gui/owncloud.exe.manifest-mingw10
3 files changed, 17 insertions, 0 deletions
diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt
index af4c98ff9..d38d14b52 100644
--- a/src/gui/CMakeLists.txt
+++ b/src/gui/CMakeLists.txt
@@ -199,6 +199,9 @@ IF( WIN32 )
${CMAKE_CURRENT_BINARY_DIR}/version.rc
@ONLY)
set(client_version ${CMAKE_CURRENT_BINARY_DIR}/version.rc)
+ IF(NOT MSVC)
+ set(client_manifest ${CMAKE_CURRENT_SOURCE_DIR}/manifest-mingw.rc)
+ ENDIF()
ENDIF()
set( final_src
@@ -206,6 +209,7 @@ set( final_src
${client_SRCS}
${client_UI_SRCS}
${client_version}
+ ${client_manifest}
${guiMoc}
${client_I18N}
${3rdparty_SRC}
diff --git a/src/gui/manifest-mingw.rc b/src/gui/manifest-mingw.rc
new file mode 100644
index 000000000..e3125c9d5
--- /dev/null
+++ b/src/gui/manifest-mingw.rc
@@ -0,0 +1,3 @@
+#include "winuser.h"
+
+CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "owncloud.exe.manifest-mingw"
diff --git a/src/gui/owncloud.exe.manifest-mingw b/src/gui/owncloud.exe.manifest-mingw
new file mode 100644
index 000000000..ecea6f7f5
--- /dev/null
+++ b/src/gui/owncloud.exe.manifest-mingw
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
+<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
+ <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
+ <security>
+ <requestedPrivileges>
+ <requestedExecutionLevel level='asInvoker' uiAccess='false' />
+ </requestedPrivileges>
+ </security>
+ </trustInfo>
+</assembly>