[izpack-scm] [jira] (IZPACK-1246) PM WARNING: Cannot write to '/usr/share/applications' java.io.IOException: Permission denied when creating shortcuts under Linux

3 views
Skip to first unread message

Torsten Stolpmann (JIRA)

unread,
May 11, 2015, 9:53:08 AM5/11/15
to s...@izpack.codehaus.org
Torsten Stolpmann created an issue
 
IzPack / Bug IZPACK-1246
PM WARNING: Cannot write to '/usr/share/applications' java.io.IOException: Permission denied when creating shortcuts under Linux
Issue Type: Bug Bug
Affects Versions: 5.0
Assignee: Unassigned
Attachments: Unix_shortcutSpec.xml
Components: Installer
Created: 11/May/15 8:49 AM
Environment: CentOS 5 testing the izpack-5.0.0-rc5-20150429.150112-25 snapshot.
Priority: Major Major
Reporter: Torsten Stolpmann

When creating shortcuts from the command line under Linux I receive the following warning. Please find attached the relevant shortcuts file.

Create shortcuts in the XDG-Menu
Enter Y for Yes, N for No:
n
May 11, 2015 3:40:15 PM WARNING: Cannot write to '/usr/share/applications'
java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:1006)
at java.io.File.createTempFile(File.java:1989)
at com.izforge.izpack.panels.shortcut.ShortcutPanelLogic.isWritable(ShortcutPanelLogic.java:760)
at com.izforge.izpack.panels.shortcut.ShortcutPanelLogic.initUserType(ShortcutPanelLogic.java:675)
at com.izforge.izpack.panels.shortcut.ShortcutConsolePanel.chooseEffectedUsers(ShortcutConsolePanel.java:198)
at com.izforge.izpack.panels.shortcut.ShortcutConsolePanel.run(ShortcutConsolePanel.java:144)
at com.izforge.izpack.installer.console.ConsoleInstallAction.run(ConsoleInstallAction.java:64)
at com.izforge.izpack.installer.console.ConsolePanels.switchPanel(ConsolePanels.java:82)
at com.izforge.izpack.installer.console.ConsolePanels.switchPanel(ConsolePanels.java:36)
at com.izforge.izpack.installer.panel.AbstractPanels.switchPanel(AbstractPanels.java:504)
at com.izforge.izpack.installer.panel.AbstractPanels.next(AbstractPanels.java:251)
at com.izforge.izpack.installer.panel.AbstractPanels.next(AbstractPanels.java:231)
at com.izforge.izpack.installer.console.ConsoleInstaller.run(ConsoleInstaller.java:183)
at com.izforge.izpack.installer.bootstrap.Installer.launchConsoleInstaller(Installer.java:262)
at com.izforge.izpack.installer.bootstrap.Installer.launchInstall(Installer.java:225)
at com.izforge.izpack.installer.bootstrap.Installer.start(Installer.java:193)
at com.izforge.izpack.installer.bootstrap.Installer.main(Installer.java:72)

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)
Atlassian logo

To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Rene Krell (JIRA)

unread,
May 12, 2015, 2:47:51 AM5/12/15
to s...@izpack.codehaus.org
Rene Krell commented on an issue
 
Re: PM WARNING: Cannot write to '/usr/share/applications' java.io.IOException: Permission denied when creating shortcuts under Linux

Did you run the installer with the according permissions, like root?
You should do so if you want to register system shortcuts.

When creating shortcuts from the command line under Linux I receive the following warning. Please find attached the relevant shortcuts file.

Create shortcuts in the XDG-Menu
Enter Y for Yes, N for No:
n
May 11, 2015 3:40:15 PM WARNING: Cannot write to '/usr/share/applications'
java.io.IOException: Permission denied
        at java.io.UnixFileSyste...
This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)
Atlassian logo

Torsten Stolpmann (JIRA)

unread,
May 12, 2015, 7:12:48 AM5/12/15
to s...@izpack.codehaus.org
Torsten Stolpmann commented on an issue

Actually I do not wanted to create any shortcuts, this is why I answered no in the dialog. IMHO the installer should not try to write to the above directory in this case.

IzPack / Bug IZPACK-1246
PM WARNING: Cannot write to '/usr/share/applications' java.io.IOException: Permission denied when creating shortcuts under Linux
When creating shortcuts from the command line under Linux I receive the following warning. Please find attached the relevant shortcuts file.

Create shortcuts in the XDG-Menu
Enter Y for Yes, N for No:
n
May 11, 2015 3:40:15 PM WARNING: Cannot write to '/usr/share/applications'
java.io.IOException: Permission denied
        at java.io.UnixFileSyste...
This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages