Linux Shortcuts not installed when run as sudo

Description

Shortcuts don't get installed when running as sudo and folllowing options selected. When running as normal user shortcuts are successfully installed

"Create shortcuts in the Start-Menu"
"Create additional shortcuts on the desktop"
"Create shortcut for: all users"

{{sudo java -jar installer.jar
Oct 24, 2015 3:09:23 AM INFO: Logging initialized at level 'INFO'
Oct 24, 2015 3:09:23 AM INFO: Commandline arguments:
Oct 24, 2015 3:09:24 AM INFO: Detected platform: linux,version=3.10.0-229.14.1.el7.x86_64,arch=x64,symbolicName=null,javaVersion=1.7.0_85
Oct 24, 2015 3:11:43 AM WARNING: Could not copy to /root/.local/share/pixmaps( (No such file or directory) )
Oct 24, 2015 3:11:43 AM WARNING: Could not copy to /root/.local/share/pixmaps( (No such file or directory) )
[ Writing the uninstaller data ... ]}}

Environment

Centos 7, GNOME 3.8.4, Java 7

Assignee

René Krell

Reporter

Mari Puhakka

Impact

None

Components

Sprint

None

Fix versions

Affects versions

Priority

High
Configure