Posts: 9,112
Threads: 576
Joined: Feb 2014
Reputation:
16
Fixed dir structure. Please pull first.
Posts: 741
Threads: 72
Joined: Nov 2016
Reputation:
0
Ok, give me a little bit and I will pull/edit/push what I have... This is major surgery here :P
I need to backup what I have first.
Note: The clock icon and column will vanish when I push what I have... We can't use that icon in the dialog. But there is a pretty nice polishing otherwise.
https://unlockforus.com
Sorry for seeming stupid and preferring Linux - I just don't know any better.
(This post was last modified: 12-10-2016, 06:56 AM by
ralphy.)
Posts: 9,112
Threads: 576
Joined: Feb 2014
Reputation:
16
No problem. FYI when I start a new GH repo, this is usually my process:
- Think of a useful tool missing from the OS.
- Throw together some bash and zenity code that is far from complete.
- Let it stew in my mind and push little ideas as they come to me.
- Refine.
Posts: 741
Threads: 72
Joined: Nov 2016
Reputation:
0
Ok Jerry, I've pushed it to GH. I'm going to open a pull request but I'm not going to merge it. I'll leave that up to you so that you can test whether you like it or not.
Note: After merging my pull request /usr/share/liteupdatenotify/icons folder is not longer needed or used. Can be safely removed.
https://unlockforus.com
Sorry for seeming stupid and preferring Linux - I just don't know any better.
(This post was last modified: 12-10-2016, 07:42 AM by
ralphy.)
Posts: 741
Threads: 72
Joined: Nov 2016
Reputation:
0
I just tested the cronjob and the cron won't run when the time is due. It runs manually executed but not on schedule. It happens that we are not setting the correct permissions. I have a clear idea of how to fix it... will look into correcting this problem.
Also, for testing purposes is OK what we have there but it is really not a good idea at all to remove the user's cron file under /var/spool/cron/crontabs/ because we will be effectively deleting all cron jobs a user may have scheduled. We need to sed -i this file instead... will get a sample later as time allows
https://unlockforus.com
Sorry for seeming stupid and preferring Linux - I just don't know any better.
(This post was last modified: 12-10-2016, 09:49 AM by
ralphy.)
Posts: 741
Threads: 72
Joined: Nov 2016
Reputation:
0
Well, I'm about to push the first fully tested (by me) update that actually does what this application requires... we are not longer removing the file but properly editing it and setting up permissions so it runs as needed.
What's been polished:
- user is allow to execute the application without administrative credentials.
- ask for credentials when adding schedule fails (elevate)
- check whether cronjob file exists or not
- added Disable Updates notification option
- create cron job file if it doesn't exist and insert an initial cron job (disable by default)
- update cron job file if it already exists and insert an initial cron job
- set correct permissions on user's cronjob file whether newly created or not
- files are not longer deleted but sed'd instead.
https://unlockforus.com
Sorry for seeming stupid and preferring Linux - I just don't know any better.
Posts: 9,112
Threads: 576
Joined: Feb 2014
Reputation:
16
Fabulous, looking forward to testing this Ralphy.
Sent from my Phone using Tapatalk