|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.af.commons.install.DesktopShortcut
org.af.commons.install.FreeDesktopShortcut
public class FreeDesktopShortcut
Creates desktop entries according to the "Desktop Entry Specification 1.0" of freedesktop.org, which is implemented for example by KDE and GNOME. See http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.0.html
| Constructor Summary | |
|---|---|
FreeDesktopShortcut(File shortcutDir,
String name,
File exec)
Constructor |
|
FreeDesktopShortcut(File shortcutDir,
String name,
String exec)
Constructor |
|
| Method Summary | |
|---|---|
void |
create()
Creates the shortcut. |
String |
getGenericname()
Returns the generic name for this shortcut. |
boolean |
isTerminal()
Should the targeted executable be executed in the terminal? |
void |
setGenericname(String genericname)
Sets the generic name for this shortcut. |
void |
setTerminal(boolean terminal)
Set whether the targeted executable be executed in the terminal. |
| Methods inherited from class org.af.commons.install.DesktopShortcut |
|---|
addParameter, addParameter, getDescription, getExec, getIconpath, getName, getShortcutDir, getWorkingDir, setDescription, setIconpath, setIconpath, setWorkingDir, setWorkingDir |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FreeDesktopShortcut(File shortcutDir,
String name,
File exec)
shortcutDir - Directory where shortcut is created.name - Visible name of the shortcutexec - The targetted executable for this shortcut.
public FreeDesktopShortcut(File shortcutDir,
String name,
String exec)
shortcutDir - Directory where shortcut is created.name - Visible name of the shortcutexec - The targetted executable for this shortcut. You can set an executable on the path here, but in general you should use the constructor with the File argument.| Method Detail |
|---|
public void create()
throws IOException
DesktopShortcut
create in class DesktopShortcutIOException - If something bad happens while writing the link.public String getGenericname()
public void setGenericname(String genericname)
genericname - The generic name for this shortcut.public boolean isTerminal()
true iff the targeted executable should be executed in the terminal.public void setTerminal(boolean terminal)
terminal - true iff the targeted executable should be executed in the terminal.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||