4 Commits

Author SHA1 Message Date
Piotr Miller
399cf7fa3a Merge pull request #13 from nwg-piotr/files
hot fix to opening files with file manager
2021-08-17 22:35:43 +02:00
piotr
aefe2af4d5 hot fix to opening files 2021-08-17 22:34:28 +02:00
piotr
71892c25ed update README 2021-08-17 13:11:07 +02:00
piotr
2536331184 update README 2021-08-17 13:06:24 +02:00
3 changed files with 7 additions and 2 deletions

View File

@@ -5,7 +5,8 @@ This application is a part of the [nwg-shell](https://github.com/nwg-piotr/nwg-s
Nwg-drawer is a golang replacement to the `nwggrid` command Nwg-drawer is a golang replacement to the `nwggrid` command
(a part of [nwg-launchers](https://github.com/nwg-piotr/nwg-launchers)). It's being developed with (a part of [nwg-launchers](https://github.com/nwg-piotr/nwg-launchers)). It's being developed with
[sway](https://github.com/swaywm/sway) in mind, but should also work with other wlroots-based Wayland compositors. [sway](https://github.com/swaywm/sway) in mind, but should also work with other wlroots-based Wayland compositors.
X Window System is not supported. X Window System is not officially supported, but you should be able to use the drawer on some floating
window managers (tested on Openbox).
The `nwg-drawer` command displays the application grid. The search entry allows to look for installed applications, The `nwg-drawer` command displays the application grid. The search entry allows to look for installed applications,
and for files in XDG user directories. The grid view may also be filtered by categories. and for files in XDG user directories. The grid view may also be filtered by categories.
@@ -63,6 +64,10 @@ Usage of nwg-drawer:
Icon Size (default 64) Icon Size (default 64)
-lang string -lang string
force lang, e.g. "en", "pl" force lang, e.g. "en", "pl"
-nocats
Disable filtering by category
-nofs
Disable file search
-o string -o string
name of the Output to display the drawer on (sway only) name of the Output to display the drawer on (sway only)
-ovl -ovl

Binary file not shown.

View File

@@ -624,7 +624,7 @@ func launch(command string, terminal bool) {
func open(filePath string) { func open(filePath string) {
cmd := exec.Command(*fileManager, filePath) cmd := exec.Command(*fileManager, filePath)
go cmd.Run() cmd.Start()
glib.TimeoutAdd(uint(150), func() bool { glib.TimeoutAdd(uint(150), func() bool {
gtk.MainQuit() gtk.MainQuit()