Create Custom Shortcut on Desktop

Discuss with the community any ideas you'd love to see in future DiskStations and DSM updates! We do our best to monitor and forward all of them, but we recommend to also use this form as our team will systematically see your suggestion:
https://www.synology.com/en-global/form ... y/feedback
Forum rules
We do our best to monitor and forward your ideas to our team, but due to the large amount, we may not see every single one and recommend to also use this form as our team will systematically see your suggestion:
https://www.synology.com/en-global/form ... y/feedback
User avatar
vletroye
Student
Student
Posts: 60
Joined: Mon Nov 10, 2014 9:55 am

Re: Create Custom Shortcut on Desktop

Postby vletroye » Sat Jan 21, 2017 8:19 am

Excellent ! And thx a lot for the feedback.
I will add a remark in the documentation about the need to install init 3rdParty.

Enjoy at least the weekend ;)

V.
DS1815+ - DSM 6.0
User avatar
vletroye
Student
Student
Posts: 60
Joined: Mon Nov 10, 2014 9:55 am

Re: Create Custom Shortcut on Desktop

Postby vletroye » Sat Jan 21, 2017 11:25 am

LOL, I did uninstall Init_3rdParty to reproduce the issue.
Now, although I did reinstall it, php scripts are not executed anymore but downloaded as you experienced initially :D

V.
DS1815+ - DSM 6.0
User avatar
vletroye
Student
Student
Posts: 60
Joined: Mon Nov 10, 2014 9:55 am

Re: Create Custom Shortcut on Desktop

Postby vletroye » Mon Jan 23, 2017 10:31 pm

Bon, voilà. problem solved...

I had issues because Mods was generating shell script with \r\n instead of just \n...

I did publish a new CTP 6.1 on https://mods.codeplex.com/


A large refactoring of the code.

Supporting now editing scripts with syntax highlighting.
Supporting commands (scripts with one single line).
Support bmp and jpg as logo, in addition to png.

Make distinction between Developer name and Publisher name in the config file.

Able to make transparent all pixels similar to pixel 1,1 in images loaded as logo (However, using Paint.Net to grab and cut the background is recommended).

At installation, Mods' packages check now the dependency on the package Init_3rdParty required to run php pages.

Various minor changes in behavior and display: version is now displayed, "Package Information" is disabled while editing an item of the "URL information", logo can only be changed on the picture 256x256 when option "Use the same ICon for all sizes" is ticked, ...

The new version is theoretically able to reload packages done with previous versions (CTP 5 and 4.2 at least).


Image
DS1815+ - DSM 6.0
doglover
Trainee
Trainee
Posts: 10
Joined: Fri Dec 30, 2016 2:30 pm

Re: Create Custom Shortcut on Desktop

Postby doglover » Tue Jan 24, 2017 10:25 am

Nice.
Also the added script editor, and saving the bash file together with the package is a nice addition.
In each case, many thanks for this nice addition to the DSM.

One remark:

The output in the iframe is only given when the script finishes. If you have a long script nothing is shown until the end.
Running the script in the console (telnet) gives you some intermediate output, if you cared to program the bash script that way. You can see the how the bash file is progressing.
When running the bash fie with this utility no progress is shown.

I suppose this is inherent to the way this is set-up. I presume nothing can be done about this.

Moreover, I have rewritten my bash file in PHP and copied the code to the PHP file generated by the generator (and stored in /usr/syno/synoman/webman/3rdparty/your_folder)
This works. Clicking on the button on the DSM runs this PHP file. But again the output is only shown when the script finishes.
To avoid misunderstanding I replaced the code in the generated php file with my own PHP code.

It is not a big deal but I would love to see the output when it is generated, and not in one shot at the end.

Willy
User avatar
vletroye
Student
Student
Posts: 60
Joined: Mon Nov 10, 2014 9:55 am

Re: Create Custom Shortcut on Desktop

Postby vletroye » Wed Jan 25, 2017 8:54 pm

Hello Willy,

> I suppose this is inherent to the way this is set-up. I presume nothing can be done about this.


I have a solution. I will implement it in the next CTP.
Possibly on next Saturday night, if not being out on the streets (*private joke*) :lol:

V.
Last edited by vletroye on Wed Jan 25, 2017 8:56 pm, edited 1 time in total.
DS1815+ - DSM 6.0
User avatar
vletroye
Student
Student
Posts: 60
Joined: Mon Nov 10, 2014 9:55 am

Re: Create Custom Shortcut on Desktop

Postby vletroye » Wed Jan 25, 2017 8:55 pm

And later, I intend to add a few menu to more easily open existing packages and create new ones.
A later release will include a feature to edit the start/stop... scripts...
And finally, I would like to add support to create "setup wizards"...

V.
DS1815+ - DSM 6.0
ste8604
Apprentice
Apprentice
Posts: 89
Joined: Mon Mar 18, 2013 2:04 pm

Re: Create Custom Shortcut on Desktop

Postby ste8604 » Wed Jan 25, 2017 10:11 pm

vletroye wrote:And later, I intend to add a few menu to more easily open existing packages and create new ones.
A later release will include a feature to edit the start/stop... scripts...
And finally, I would like to add support to create "setup wizards"...

V.


the best!! tks for your work
DS214play - DSM 6.0.2
User avatar
vletroye
Student
Student
Posts: 60
Joined: Mon Nov 10, 2014 9:55 am

Re: Create Custom Shortcut on Desktop

Postby vletroye » Sun Jan 29, 2017 12:49 am

It won't be ready by tonight :(

Menu to Create/Open several packages is ready.
Support to edit Start/Stop/Install/Uninstall/Upgrade Script is ready - Using ScintillaNet.
Support to display shell script execution in realtime is ready (via "Script Runner" - i.e. php script that can be customized to execute the shell script).

Finally, the Wizard editor is under construction... Based on Ztn Json Editor.
It's already generating Steps, Items and basic Subitems (text, radio button, check box and passwords...). No support for Combo yet... and... nothing tested!

Image

V.
DS1815+ - DSM 6.0
User avatar
vletroye
Student
Student
Posts: 60
Joined: Mon Nov 10, 2014 9:55 am

Re: Create Custom Shortcut on Desktop

Postby vletroye » Sun Jan 29, 2017 9:30 pm

Some progress.

I did test a custom packages with an "install wizard" including several steps (screens) with text boxes, radio buttons and checkboxes... it's more or less ok.
I didn't test already if the values entered in the various fields were available in the installation script...

I spent also some time on making the creation of a wizard easier, by integrating a preview in the Editor :p
I still don't support Combobox and Validator (as well as many optional attributes). But the Json Editor is very flexible and one can create anything manually...
For other items, I did implement contextual menus to
- add items (right click on [Array] where the item must be added)
- remove items (right click on the {Object} containing the item to be removed)

I did also format the json treeview to highlight the "Array" and "Object" where "Wizard" menu are available.

Image

I have also review the layout of Mods to include more optional INFO fields (in the "Package Information" area).

I will publish a new alpha (7.1) later tonight :p
DS1815+ - DSM 6.0
User avatar
vletroye
Student
Student
Posts: 60
Joined: Mon Nov 10, 2014 9:55 am

Re: Create Custom Shortcut on Desktop

Postby vletroye » Sun Feb 05, 2017 4:16 pm

New version "Alpha 7.2" with "setup Wizard" includes now support for ComboBoxes (both static and dynamic, i.e. using store and api_Store) and syntax highlighting on wizard's json string

See https://mods.codeplex.com/releases/view/630498

Image
DS1815+ - DSM 6.0
ste8604
Apprentice
Apprentice
Posts: 89
Joined: Mon Mar 18, 2013 2:04 pm

Re: Create Custom Shortcut on Desktop

Postby ste8604 » Tue Feb 07, 2017 10:21 pm

fantastic, can publish a video example? or an exmple to use....
DS214play - DSM 6.0.2
ste8604
Apprentice
Apprentice
Posts: 89
Joined: Mon Mar 18, 2013 2:04 pm

Re: Create Custom Shortcut on Desktop

Postby ste8604 » Tue Feb 07, 2017 10:32 pm

publish this project to synology.
with this software a lot of develop can write a multi packege!!
DS214play - DSM 6.0.2
User avatar
vletroye
Student
Student
Posts: 60
Joined: Mon Nov 10, 2014 9:55 am

Re: Create Custom Shortcut on Desktop

Postby vletroye » Fri Feb 17, 2017 7:00 pm

I will consider publishing a video when I have some free time...

V.
DS1815+ - DSM 6.0

Return to “Feature Requests & Product Improvement Suggestions”

Who is online

Users browsing this forum: No registered users and 3 guests