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

manage_sync not working #6

Open
gitsf opened this issue Jun 21, 2019 · 3 comments
Open

manage_sync not working #6

gitsf opened this issue Jun 21, 2019 · 3 comments

Comments

@gitsf
Copy link
Contributor

gitsf commented Jun 21, 2019

New Issue since it is a new topic hope that's ok.
I did have this issue before you switched the user account info so this might not be related to making that change.
Whenever I try to run manage_sync I get this error:
"Invalid number of arguments for manage_selective_sync
insync-headless manage_selective_sync EMAIL
Manage selective sync settings of account through a curses interface"

So thinking I needed to specify the email address after.
So I tried manage_sync [email protected]
and I get the same error.

It looks like the script is calling a username variable that is no longer used with the multi user.
So not sure if you have a good idea on how to do the multiuser

I have a couple of thoughts
1.) enter: manage_sync {1,2,3} - They would enter either 1-3 and then the script would look at the number entered and run the command pulling in that username variable.
2.) enter manage_sync - it will then list the Username variable values and then they would select 1,2,3 and then it would continue. This could be combined with above, they could enter what number they want when running, if they dont enter a number then it would present them with the list.
3.) enter manage_sync EMAIL - They enter the email address they want to modify
This one could simply be to update the command to:
TERM=xterm sudo -u insync exec /usr/bin/insync-headless manage_selective_sync $1

Not sure if you think one is easier than the other for the user, but as it stands these scripts(ignore & sync) dont work
Also when updating the scripts need to switch to the insync user when running the command
I believe I could write up the script combining option 1 & 2 above, I believe I already listed how to make opt 3 work.
Just let me know.
Thanks

@tiredofit
Copy link
Owner

Ahh right - thanks for catching this. This image has grown legs over the past 3 years and I believe the manage sync scripts were when this thing was running single user. I like number 3 to be honest. I'm now away on a trip to a conference in Philadelphia for the next week - I will take a peek at this when I return!

@gitsf
Copy link
Contributor Author

gitsf commented Jun 21, 2019

Sounds great, hope you have a good week at the conference.

Here are my notes on it for when you get back.
In my fork of this, I made the change to:
TERM=xterm sudo -u insync exec /usr/bin/insync-headless manage_selective_sync $1

Also for the ignore
TERM=xterm sudo -u insync exec /usr/bin/insync-headless manage_ignore_list $1

I have tested it and both seem to work very well, so the user would enter
manage_sync EMAIL (replace EMAIL with actual email address)
and
manage_ignore EMAIL (replace EMAIL with actual email address)

@maltokyo
Copy link

maltokyo commented Jan 5, 2020

Hello, I am keen to start using this too! Is it still maintained?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants