Commit Graph

55 Commits

Author SHA1 Message Date
Scoopta
a6e66d7cb7 Added wofi_exit(). This allows correct handling of custom exit status codes on non-glibc systems. This function should always be used for exiting wofi as libc exit() will no longer correctly handle error situations. 2024-02-07 18:16:11 -08:00
Scoopta
1f5161eb66 Added the drun-print_desktop_file option 2024-01-19 13:50:37 -08:00
Scoopta
81ea8042a7 Fixed #193. drun mode now respects Hidden 2023-07-04 22:51:29 -07:00
Scoopta
9aa93ed272 Added the config option drun-disable_prime to disable prime GPU offloading 2022-12-25 15:54:50 -08:00
Scoopta
efbc44fd98 Added a null check to the pixbuf for drun image loading to clean up runtime GTK warnings 2022-06-29 19:53:29 -07:00
Scoopta
43b1de994f The GDesktopAppInfo is now properly cast to a GAppInfo 2022-05-02 01:01:33 -07:00
Vika Shleina
67b592ff2f drun: switch to g_app_info_should_show() for filtering
This function respects OnlyShowIn and NotShowIn to filter out apps that
are not applicable to the current desktop environment. It also does
additional sanity checks on .desktop files, providing the same effect as
the boolean expression it replaced.
2022-01-02 14:49:53 +03:00
Scoopta
f93ba6a41c drun should no longer crash when encountering invalid cache entries 2020-12-20 00:54:17 -08:00
Scoopta
f51a335465 drun mode now removes field codes when printing the command 2020-12-20 00:48:09 -08:00
Scoopta
0decee5d78 Moved the call to exit() outside the else as otherwise wofi won't exit when printing the command 2020-11-12 18:30:25 -08:00
Scoopta
3f0eb0882b Async launch is now only used for dbus launching 2020-11-12 17:50:42 -08:00
Scoopta
9d57b9cc5f Increased sleep time after drun launch for better dbus launching 2020-11-02 18:14:27 -08:00
Scoopta
acb335d01b Moved to a synchronous based launch of desktop apps as async was causing mysterious hangs in GIO for some people 2020-10-22 17:41:34 -07:00
Scoopta
cd61e73f20 v1.2.1: widget_builder now only lets you assign classes. The name will be consistent with the image escape system 2020-07-28 16:18:44 -07:00
Scoopta
00decaa9a1 Fixed icon scaling on HiDPI displays 2020-07-18 01:44:29 -07:00
Scoopta
da98a2d240 Added base64 image support 2020-07-11 17:39:09 -07:00
Scoopta
ad73f24c75 Renamed widget builder functions to be more consistent with the rest of wofi 2020-07-11 16:39:09 -07:00
Scoopta
1ed2445bd4 drun ported to the new widget builder API 2020-06-29 21:23:36 -07:00
Scoopta
1393306c26 Wofi now loads modes multi-threaded, this should decrease startup times 2020-06-23 00:33:57 -07:00
Scoopta
aaaf79d0f7 PrefersNonDefaultGPU is now respected when launching a non-primary action 2020-05-21 15:18:26 -07:00
Scoopta
37aa2a3b9b Added support for the PrefersNonDefaultGPU desktop entry flag 2020-05-21 15:06:54 -07:00
Scoopta
0d1836649e Added display_generic option to drun 2020-05-15 17:20:56 -07:00
Scoopta
29aeffd8c1 Cleaned up includes, they were a bit of a mess 2020-03-25 23:05:46 -07:00
Scoopta
f61ec70797 Moved code to get $XDG_DATA_DIRS and $XDG_DATA_HOME to separate functions 2020-03-24 18:54:44 -07:00
Scoopta
efca41d41a $XDG_DATA_HOME/applications now gets priority over cache 2020-03-24 18:37:23 -07:00
Scoopta
c56be00336 drun: Removed cached map 2020-03-24 14:50:28 -07:00
Scoopta
ab974be7ef Using drun-print_command=true with a desktop file action will now print a warning to stderr while printing the main action's commandline 2020-02-25 18:59:16 -08:00
Scoopta
937ba8e411 Added drun-print_command 2020-02-25 16:04:40 -08:00
Scoopta
7c511264df Good C practices, one day I'll remember to do this all the time 2020-01-31 13:29:00 -08:00
Scoopta
cee642d409 Moved the gdesktopappinfo.h include to drun 2020-01-28 13:56:43 -08:00
Scoopta
05490241a9 Modes no longer have to pass a name that matches the name they were loaded with, this was just absurdly bad design and I don't know how I came up with it in the first place 2020-01-20 20:09:40 -08:00
Scoopta
22c32c0f2c The error is now freed 2020-01-19 14:57:53 -08:00
Scoopta
a84b2cd980 drun no longer ignores the error when launching 2020-01-19 14:55:43 -08:00
Scoopta
e5300b2995 Changed the widget insertion system, this should hopefully increase performance and be an all around better system 2020-01-16 16:35:51 -08:00
Scoopta
db8bf96411 Desktop file ids are now used instead of names and paths, a duplication issue caused by caching was also fixed 2020-01-11 16:03:02 -08:00
Scoopta
35f537cd15 Cleaned up formatting on that concat 2020-01-07 18:29:26 -08:00
Scoopta
3773a672a2 Added support for searching generic names in drun 2020-01-07 18:10:48 -08:00
Scoopta
43e560788a Fixed keyword searching in drun 2020-01-07 18:08:55 -08:00
Scoopta
d07622de3e Copyright update 2020-01-06 16:42:52 -08:00
Scoopta
a85c516926 Good C practices 2020-01-06 00:39:47 -08:00
Scoopta
e037fa7b4e Added cache invalidation 2020-01-02 14:36:54 -08:00
Ian Brunelli
a30d5c09e5 Add a fallback icon to drun entries 2019-11-24 08:46:14 -03:00
Scoopta
f6c0d9d832 Entries with NoDisplay set now still get treated as entries that exist for ID checks 2019-11-23 14:46:23 -08:00
Scoopta
7573eecb02 Cache write is now controlled by the mode, this allows for greater flexibility with caching 2019-11-16 14:52:20 -08:00
Scoopta
b710a3aee5 Added support for alternative desktop actions 2019-11-13 01:17:45 -08:00
Scoopta
9bc345beae drun now searchs by category 2019-11-12 20:41:01 -08:00
Scoopta
07cb2a65a7 Removed utils_split(), strtok_r() is now used instead 2019-11-04 22:41:53 -08:00
Scoopta
2ab1c53b4d Added support for combi style functionality 2019-11-04 20:56:40 -08:00
Scoopta
5bb351d450 Internal plugin initalizers must now be prefixed with wofi_. This prevents using map, wl_list, wofi, and other mode strings to segfault wofi 2019-11-04 13:25:44 -08:00
Scoopta
ea7893eb12 Added support for loading desktop files from nested directories 2019-11-02 11:58:51 -07:00