Skip to content

Commit

Permalink
Update dependency on inilike. Check for group names
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave committed Mar 20, 2016
1 parent 6467be6 commit e1505a9
Show file tree
Hide file tree
Showing 10 changed files with 467 additions and 300 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,4 @@ Example using cmd on Windows (KDE installed):
Uses the alternative way of starting desktop file. Instead of constructing DesktopFile object it just starts the application or opens link after read enough information from file.

dub run desktopfile:shootdesktop -- $HOME/Desktop/vlc.desktop

dub run desktopfile:shootdesktop -- /usr/share/applications/python2.7.desktop
2 changes: 1 addition & 1 deletion dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"copyright": "Copyright © 2015-2016, Roman Chistokhodov",
"authors": ["Roman Chistokhodov"],
"dependencies": {
"inilike": "~>0.4.1",
"inilike": "~>0.5.0",
"xdgpaths" : "~>0.1.2"
},
"targetName" : "desktopfile",
Expand Down
2 changes: 1 addition & 1 deletion dub.selections.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"fileVersion": 1,
"versions": {
"isfreedesktop": "0.1.0",
"inilike": "0.4.1",
"inilike": "0.5.0",
"xdgpaths": "0.1.2"
}
}
2 changes: 1 addition & 1 deletion examples/desktoptest/dub.selections.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"versions": {
"standardpaths": "0.3.1",
"isfreedesktop": "0.1.0",
"inilike": "0.4.1",
"inilike": "0.5.0",
"xdgpaths": "0.1.2"
}
}
2 changes: 1 addition & 1 deletion examples/desktoptest/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void main(string[] args)
writeln(entry);
}
try {
auto df = new DesktopFile(entry);
auto df = new DesktopFile(entry, DesktopFile.ReadOptions.noOptions);
if (!df.execString().empty) {
auto execArgs = df.expandExecString();
}
Expand Down
2 changes: 1 addition & 1 deletion examples/desktoputil/dub.selections.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"fileVersion": 1,
"versions": {
"isfreedesktop": "0.1.0",
"inilike": "0.4.0",
"inilike": "0.5.0",
"xdgpaths": "0.1.2"
}
}
4 changes: 2 additions & 2 deletions examples/desktoputil/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void main(string[] args)
if (command == "read") {
auto df = new DesktopFile(inFile);

writefln("Name: %s. Localized: %s", df.name(), df.localizedName(locale));
writefln("Name: %s. Localized: %s", df.displayName(), df.localizedDisplayName(locale));
writefln("GenericName: %s. Localized: %s", df.genericName(), df.localizedGenericName(locale));
writefln("Comment: %s. Localized: %s", df.comment(), df.localizedComment(locale));
writeln("Type: ", df.value("Type"));
Expand All @@ -54,7 +54,7 @@ void main(string[] args)
getopt(args, "action", "Action to run", &action);
if (action.length) {
auto desktopAction = df.action(action);
if (desktopAction.group() is null) {
if (desktopAction is null) {
stderr.writefln("No such action %s", action);
} else {
desktopAction.start();
Expand Down
2 changes: 1 addition & 1 deletion examples/shootdesktop/dub.selections.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"versions": {
"standardpaths": "0.2.0",
"isfreedesktop": "0.1.0",
"inilike": "0.4.0",
"inilike": "0.5.0",
"xdgpaths": "0.1.2"
}
}
Loading

0 comments on commit e1505a9

Please sign in to comment.