mirror of
https://github.com/lbonn/rofi
synced 2024-11-23 12:23:02 +00:00
5bec191d2e
* [DRun] Introduce data structure changes for Link desktop entries From the [freedesktop spec][1]: > This specification defines 3 types of desktop entries: > Application (type 1), Link (type 2) and Directory (type 3). To allow > the addition of new types in the future, implementations should > ignore desktop entries with an unknown type. This commit adds an enum to capture these types, and adds `type` to DRunModeEntry. [1]: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html part of #1166 * [DRun] Sanity check Link entries and capture the URL Note that we're introducing some logic that will differ depending on the Desktop entry type (Application or Link). The logic is: - if entry is Application type, - then Exec is required - and the value is saved in .exec - and drun_mode_result calls exec_cmd_entry - if entry is Link type, - then URL is required (but is not saved in the DRunModeEntry) - and drun_mode_result calls new function launch_link_entry part of #1166 * [DRun] Launch desktop links via xdg-open Note that this introduces a new dependency on xdg-open, which may not be installed. In that case, rofi will display an error dialog with something like: "Failed to execute child process xdg-open (No such file or directory)" which hopefully is explanatory enough for folks. part of #1166 * Make drun options comments consistent and add a bit of whitespace * [DRun] new config option drun-url-launcher for opening links In previous commit, this was a hard-coded string. part of #1166 |
||
---|---|---|
.. | ||
dialogs | ||
widgets | ||
css-colors.h | ||
display.h | ||
helper-theme.h | ||
helper.h | ||
history.h | ||
keyb.h | ||
mode-private.h | ||
mode.h | ||
rofi-icon-fetcher.h | ||
rofi-types.h | ||
rofi.h | ||
settings.h | ||
theme.h | ||
timings.h | ||
view-internal.h | ||
view.h | ||
xcb-internal.h | ||
xcb.h | ||
xrmoptions.h |