Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run cortile as user #6

Closed
ahmeteid7 opened this issue Oct 6, 2022 · 3 comments
Closed

run cortile as user #6

ahmeteid7 opened this issue Oct 6, 2022 · 3 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@ahmeteid7
Copy link

i only can run cortile as root with sudo, i can't run it as user, it is that the default ? or it is something i do wrong in installing it

@ahmeteid7
Copy link
Author

eid@eid-HP-Compaq-6005-Pro-SFF-PC:~/go/bin$ cortile
panic: runtime error: index out of range [1] with length 1

goroutine 1 [running]:
github.com/leukipp/cortile/store.IsIgnored({{0xc0002020e0, 0x4}, {0xc00001a6c0, 0x3}, 0x0, {0x7656b0, 0x0, 0x0}, 0xc000022390, 0x0})
/home/eid/cortile-1.0.0b1/store/client.go:357 +0x30a
github.com/leukipp/cortile/desktop.(*Tracker).isTrackable(0x59d780?, 0x7d200?)
/home/eid/cortile-1.0.0b1/desktop/tracker.go:320 +0x158
github.com/leukipp/cortile/desktop.(*Tracker).populateClients(0xc000182490)
/home/eid/cortile-1.0.0b1/desktop/tracker.go:42 +0x7a
github.com/leukipp/cortile/desktop.CreateTracker(0xc00007d230)
/home/eid/cortile-1.0.0b1/desktop/tracker.go:33 +0xdd
main.main()
/home/eid/cortile-1.0.0b1/main.go:44 +0xb4
eid@eid-HP-Compaq-6005-Pro-SFF-PC:~/go/bin$ ./cortile
panic: runtime error: index out of range [1] with length 1

goroutine 1 [running]:
github.com/leukipp/cortile/store.IsIgnored({{0xc00009206c, 0x4}, {0xc0002020a3, 0x3}, 0x0, {0x7656b0, 0x0, 0x0}, 0xc00009e180, 0x0})
/home/eid/cortile/store/client.go:357 +0x30a
github.com/leukipp/cortile/desktop.(*Tracker).isTrackable(0x59d780?, 0x7d260?)
/home/eid/cortile/desktop/tracker.go:320 +0x158
github.com/leukipp/cortile/desktop.(*Tracker).populateClients(0xc0001824a0)
/home/eid/cortile/desktop/tracker.go:42 +0x7a
github.com/leukipp/cortile/desktop.CreateTracker(0xc00007d290)
/home/eid/cortile/desktop/tracker.go:33 +0xdd
main.main()
/home/eid/cortile/main.go:44 +0xb4

@leukipp
Copy link
Owner

leukipp commented Oct 6, 2022

No, cortile is not supposed to be run as root.

  • Are you able to run other go applications without root?
  • Did you use sudo on first startup?
    • If so, check if config.toml was proper created (user folder) and your user has read rights on the file.

You can debug the application with cortile -vvv.

@leukipp leukipp self-assigned this Oct 6, 2022
@leukipp leukipp added bug Something isn't working question Further information is requested labels Oct 6, 2022
@ahmeteid7
Copy link
Author

ahmeteid7 commented Oct 6, 2022

sorry, as i expected, it was wrong in installing go, I tried install go again, and everything good, thank u very much for that amazing app, i recommend all xfce distros to use it with it's built-in apps. great job

@leukipp leukipp closed this as completed Oct 7, 2022
@leukipp leukipp mentioned this issue Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants