-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
INFO and config alignment spksrc.service.mk #4993
Conversation
Create config file with same id as INFO file.
The following code in
So it should look something like this:
|
BTW this brings back the DSM desktop icons for synocommunity apps in DSM 6 and DSM 7. @BKSteve can you please explain what the |
- fix dsmappname in spksrc.spk.mk and id in app/config generated in spksrc.service.mk (add .packages) - add Makefile variable DSM_APP_PAGE to define dsmapppage in DSM 7 INFO file - add Makefile variable DSM_APP_LAUNCH_NAME to define dsmapplaunchname in DSM 7 INFO file
@@ -39,7 +39,7 @@ | |||
# folder at intallation and runtime. | |||
# SSS_SCRIPT (optional) custom script file for service start/stop/status when the generic | |||
# installer generated script (SERVICE_SETUP) is not usable. | |||
# NO_SERVICE_SHORTCUT (optional) do not create | |||
# NO_SERVICE_SHORTCUT (optional) do not create an app icon in the DSM desktop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is just an update of the comment and has to be validated for correct implementation.
Just found it in the Dev Guide (page 59): Show Message as Desktop NotificationIt is possible to use /usr/syno/bin/synodsmnotify executable to send desktop notifications to users. The notification title / message
|
Yes, when the two files config and INFO align they will work together.
So from the edits that clears up that question / comment. I have another question, is it necessary to do Does this also mean that Add1: Add2:
The
in line with the above the activation string for my testing was |
Just from the dev guide (dsmapppage and dsmapplaunchname are new for DSM 7): Field Name: dsmappname
Field Name: dsmapppage
Field Name: dsmapplaunchname
As the values for Tie fields |
Here's my INFO file first 20 lines as installed in
|
Interestingly I noticed that |
As the two files don't line up with each other then it can't match the information in the config file to what INFO is telling it to look for. After I set both files to contain |
Yes, that was what the spksrc framework generated, but the synology dev guide tells, that |
Yes, that was my finding too, and therefore I jumped into this PR (was originally created to solve the DSM notifications from sickchill). |
But why bother taking it out with if statements if it causes no issue? I also don't fully understand how to use those 2 new items either |
My PR #4994 is close to ready for merge but I'm really much interested in having this icon thing fixed. I'll wait for this fix to get in before publishing my |
I will also leave it to the professionals. I've done my bit, identified and proposed a solution/s. Which will fix the initial issue and by chance another. Leaving this to you guys in SynoComm now. |
* Update spksrc.service.mk Create config file with same id as INFO file. * keep com.synocommunity.packages in app name - fix dsmappname in spksrc.spk.mk and id in app/config generated in spksrc.service.mk (add .packages) - add Makefile variable DSM_APP_PAGE to define dsmapppage in DSM 7 INFO file - add Makefile variable DSM_APP_LAUNCH_NAME to define dsmapplaunchname in DSM 7 INFO file Co-authored-by: hgy59 <hpgy59@gmail.com>
* Update spksrc.service.mk Create config file with same id as INFO file. * keep com.synocommunity.packages in app name - fix dsmappname in spksrc.spk.mk and id in app/config generated in spksrc.service.mk (add .packages) - add Makefile variable DSM_APP_PAGE to define dsmapppage in DSM 7 INFO file - add Makefile variable DSM_APP_LAUNCH_NAME to define dsmapplaunchname in DSM 7 INFO file Co-authored-by: hgy59 <hpgy59@gmail.com>
Create
config
file with same id asINFO
file.Motivation: DSM7 notification not working as INFO file of package and config file are not aligned in naming convention.
Linked issues: https://github.com/SickChill/SickChill/issues/7694#issuecomment-986926967
Thus
synodsmnotify
even if strings were configured correctly would not resolve their i18n text strings.@th0ma7 I don't know the knock on effects of this modification to other parts of the build. Also the other choice may be to modify the
spksrc.spk.mk
file lines 204 to 206 to change the INFO file instead.