Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
98efb36614 | ||
|
|
59533536b1 | ||
|
|
07821f39b7 | ||
|
|
4ea160e524 | ||
|
|
8fb4209a97 | ||
|
|
c85c364ba5 | ||
|
|
8239254485 | ||
|
|
7681055a23 | ||
|
|
15c9029935 |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -11,5 +11,8 @@
|
|||||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
# Output of the go coverage tool, specifically when used with LiteIDE
|
||||||
*.out
|
*.out
|
||||||
|
|
||||||
|
# Binaries built with make
|
||||||
|
bin
|
||||||
|
|
||||||
# Dependency directories (remove the comment below to include it)
|
# Dependency directories (remove the comment below to include it)
|
||||||
# vendor/
|
# vendor/
|
||||||
|
|||||||
@@ -52,9 +52,6 @@ confirmed to work well with the program. Also see **Files** below.
|
|||||||
3. `make build`
|
3. `make build`
|
||||||
4. `sudo make install`
|
4. `sudo make install`
|
||||||
|
|
||||||
Building the gotk3 library takes quite a lot of time. If your machine is x86_64, you may skip steps 2-3, and
|
|
||||||
install the provided binary by executing step 4.
|
|
||||||
|
|
||||||
## Command line arguments
|
## Command line arguments
|
||||||
|
|
||||||
```text
|
```text
|
||||||
|
|||||||
BIN
bin/nwg-drawer
BIN
bin/nwg-drawer
Binary file not shown.
6
main.go
6
main.go
@@ -21,7 +21,7 @@ import (
|
|||||||
"github.com/gotk3/gotk3/gtk"
|
"github.com/gotk3/gotk3/gtk"
|
||||||
)
|
)
|
||||||
|
|
||||||
const version = "0.2.5"
|
const version = "0.2.7"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
appDirs []string
|
appDirs []string
|
||||||
@@ -495,7 +495,9 @@ func main() {
|
|||||||
glib.TimeoutAdd(uint(1), func() bool {
|
glib.TimeoutAdd(uint(1), func() bool {
|
||||||
if showWindowTrigger && win != nil && !win.IsVisible() {
|
if showWindowTrigger && win != nil && !win.IsVisible() {
|
||||||
win.ShowAll()
|
win.ShowAll()
|
||||||
fileSearchResultWrapper.Hide()
|
if fileSearchResultWrapper != nil {
|
||||||
|
fileSearchResultWrapper.Hide()
|
||||||
|
}
|
||||||
// focus 1st element
|
// focus 1st element
|
||||||
b := appFlowBox.GetChildAtIndex(0)
|
b := appFlowBox.GetChildAtIndex(0)
|
||||||
if b != nil {
|
if b != nil {
|
||||||
|
|||||||
5
tools.go
5
tools.go
@@ -15,6 +15,7 @@ import (
|
|||||||
"regexp"
|
"regexp"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
@@ -578,6 +579,10 @@ func launch(command string, terminal bool) {
|
|||||||
msg := fmt.Sprintf("env vars: %s; command: '%s'; args: %s\n", envVars, elements[cmdIdx], elements[1+cmdIdx:])
|
msg := fmt.Sprintf("env vars: %s; command: '%s'; args: %s\n", envVars, elements[cmdIdx], elements[1+cmdIdx:])
|
||||||
log.Info(msg)
|
log.Info(msg)
|
||||||
|
|
||||||
|
cmd.SysProcAttr = &syscall.SysProcAttr {
|
||||||
|
Setsid: true,
|
||||||
|
}
|
||||||
|
|
||||||
cmd.Start()
|
cmd.Start()
|
||||||
|
|
||||||
if *resident {
|
if *resident {
|
||||||
|
|||||||
Reference in New Issue
Block a user