CARVIEW |
Navigation Menu
-
-
Notifications
You must be signed in to change notification settings - Fork 72
Releases: swiftDialog/swiftDialog
swiftDialog 2.5.6
1a074d9
Compare
Fixes:
- Fixed an issue where specifying an icon from json required the icon to be in an array even if there was a single icon. fixes #493
- Notification click closes dialogs in v2.5.5 #499
- Update dialog script version message when no user logged in by @HowardGMac in #510
- Use whole path for scutil (resubmit) by @MikeRich88 in #515
- Added trailing padding to helpimage
- Adds key authorisation to sending notifications if one is required #485
- fix missing options for
--textfield
in help #485
Contributions:
Additional options for working with notifications
- Adds ability to set an identifier for a notification, allowing you to easily replace a notification with an updated one. Also the ability to remove a specific notification by identifier or all notifications.
Example:
dialog --notification --identifier "update.message" --title "Updates" --message "Please update by tonight."
dialog --notification --identifier "update.message" --title "Updates" --message "Please update within the next hour."
dialog --notification --identifier "update.message" --remove
Thanks to @chrisgrande
Added buttonsize as a command line and control file variable
- Support for mini, small and large button button sizes, using the built in macOS sizes. The button size will default to the current value of regular if not specified or not valid.
- Support for button size to the builder mode for testing and JSON generation.
Button style is applied to button1
, button2
and the info button. It is also applied in the normal and stacked button layout.
It does not scale the help button, which is a fixed size.
Examples:
dialog --buttonsize large --commandfile /var/tmp/dialog.txt
echo "buttonsize: mini" >> /var/tmp/dialog.txt
Thanks to @k2graham
Options to hide and show the dialog window from the command file
- Added
hide:
andshow:
commands to the list of command file commands to hide and show windows. This does not prevent window updates from occurring while a window is hidden.
Thanks to @fabienconus
Assets 4
swiftDialog 2.5.6 Beta 3
32f04f1
Compare
What's Changed
- Update dialog script version message when no user logged in by @HowardGMac in #510
- Use whole path for scutil (resubmit) by @MikeRich88 in #515
- Added trailing padding to helpimage
- Adds key authorisation to sending notifications if one is requires #485
- fix missing options for
--textfield
in help #485
Assets 3
swiftDialog 2.5.6 Beta 2
Compare
Adds a fix to address #499 Notification click closes dialogs in v2.5.5
Assets 3
swiftDialog 2.5.6 Beta 1
Compare
Fixes:
- Fixed an issue where specifying an icon from json required the icon to be in an array even if there was a single icon. fixes #493
Contributions:
@chrisgrande #488 Additional options for working with notifications
Ability to set an identifier for a notification, allowing you to easily replace a notification with an updated one. Also the ability to remove a specific notification by identifier or all notifications.
Example:
dialog --notification --identifier "update.message" --title "Updates" --message "Please update by tonight."
dialog --notification --identifier "update.message" --title "Updates" --message "Please update within the next hour."
dialog --notification --identifier "update.message" --remove
@k2graham #492 Added buttonsize as a command line and control file variable
Added support for mini, small and large button button sizes, using the built in macOS sizes. The button size will default to the current value of regular if not specified or not valid.
Added support for button size to the builder mode for testing and JSON generation.
Tested with control files, json input and command line, and with incorrect values.
Button style is applied to button1, button2 and the info button. It is also applied in the normal and stacked button layout.
It does not scale the help button, which is a fixed size.
Examples:
dialog --buttonsize large --commandfile /var/tmp/dialog.txt
echo "buttonsize: mini" >> /var/tmp/dialog.txt
@fabienconus #497 Added options to hide and show the dialog window from the command file
Adds hide:
and show:
commands to the list of command file commands to hide and show windows. This does not prevent window updates from occurring while a window is hidden.
Assets 3
swiftDialog 2.5.5
931d329
Compare
π‘ Please read the release notes carefully regarding command file permissions.
Fixes:
- #476 Notifications no longer trigger action items from --button1action or --button2action
- #473 Applying the blur effect then turning it off puts a dialog on top even if it is not on top
- #477 timer flag causing dialog to stay open indefinitely
- Added processing to handle if no arguments are used on the command line. This should allow enough time for whatever action is being run from a notification to take effect.
- Fix issue where default string values were not being populated on arguments with optional values
- updated logic for
/usr/local/bin/dialog
to avoid permission issues and warn if the command file is detected as a symlink
Updates:
- #463 customize the label on the Help paneβs close button to any desired text
--helpsheetbuttontext
π¨ /usr/local/bin/dialog
and command file permissions π¨
The /usr/local/bin/dialog
launch script has been updated and no longer performs the convenience task of ensuring the command file (default or custom) is readable from a standard user account.
If you have a workflow that uses command files you will need to check the following:
- use custom command files where possible
- do not use symlinks
- if pre-creating the file ahead of launching swiftDialog, ensure standard users have rw permissions to the file.
- you can use a path to a command file without creating the file first. In this case swiftDialog will create the file for you which will have the correct permissions as a consequence. Of course, the target directory will need to have appropriate permissions for a standard user to be able to create the file.
If the file cannot be read when launched using /usr/local/bin/dialog
a message will be sent to stderr. If the file is detected to be a symbolic link to another file a message will be sent to stderr and the process stopped.
If you need to run an older version of swiftDialog, it is recommended you update the launcher using the dialog-2.5.5-4802-launcher.pkg
package attached to this release. This will upgrade just the launcher and not swiftDialog itself. This should be compatible with any prior version.
Assets 5
swiftDialog 2.5.5 RC 1
Compare
Fixes:
- all fixes in v2.5.5 Beta 1
- #479 /usr/local/bin/dialog --help shows No argument found with the given name: none and not help info
- #477 timer flag causing dialog to stay open indefinitely
- updated logic for
/usr/local/bin/dialog
to avoid permission issues and warn if the command file is detected as a symlink
Assets 3
swiftDialog 2.5.5 Beta 1
Compare
Fixes:
- #476 Notifications no longer trigger action items from --button1action or --button2action
- #473 Applying the blur effect then turning it off puts a dialog on top even if it is not on top
- Added processing to handle if no arguments are used on the command line. This should allow enough time for whatever script is being launced from a notification to launch.
- Fix issue where default string values were not being populated on arguments with optional values
- Remove code for dealing with commandfile permissions in the
dialog
launch script. Should no longer be needed
Updates:
- #463 customize the label on the Help paneβs close button to any desired text
--helpsheetbuttontext
Assets 3
swiftDialog 2.5.4
7a8fdf8
Compare
Assets 4
swiftDialog 2.5.3
eebc5b6
Compare
New:
- Added ability to create QR codes as images
- e.g.
--icon qr=<text>
where can be a URL or other string
- e.g.
- Multiple icons can be specified when using
--centreicon
which will display centred along the top of the window- e.g.
--centreicon --icon image1.png --icon image2.png --icon image3.png
- e.g.
- Added
--helpimage
which will add an image to the right of any--helpmessage
. accepts any valid image type- e.g.
--helpmessage "Scan the QR code for help" --helpimage "qr=https://swiftdialog.app"
- e.g.
Fixes:
--webcontent
caching account/sessions between dialog instances #439- Add check for CGSession to make login window operations on boot more reliable #442
- moved file select dialog to a popover sheet. This lets it inherit the window peoperties of the parent and appear over the top of blurscreen #441
- Allow
--helpmessage
to support markdown files #447 - Fixed #456 - Enable rounded corners when using base64 encoded images
- Remove dependency on third party
fileicon
shell script for branding. - Add
-H
option to the sudo command in therunAsUser
function in/usr/local/bin/dialog
script. Should help with context when performing tasks like launching URL's in Chrome
Under the hood changes
A lot of updates to how command line arguments are processed internally. This doesn't change operation but will assist future planned refactoring work.
Known issues
On macOS 15 you might see the following on stderr:
2024-10-24 19:07:22.157 Dialog[26712:1399071] +[IMKClient subclass]: chose IMKClient_Legacy
2024-10-24 19:07:22.157 Dialog[26712:1399071] +[IMKInputSession subclass]: chose IMKInputSession_Legacy
This shouldn't affect any output processing and can be ignored. It has been raised as an issue to Apple as FB15576915 and is not unique to swiftDialog.
Workaround: send stderr to null i.e. dialog <args> 2>/dev/null
Assets 4
swiftDialog 2.5.3 Beta 3
Compare
All the things in Beta 2 plus the following:
- Added ability to create QR codes as images
- e.g.
--icon qr=<text>
where can be a URL or other string
- e.g.
- Multiple icons can be specified when using
--centreicon
which will display centred along the top of the window- e.g.
--centreicon --icon image1.png --icon image2.png --icon image3.png
- e.g.
- Added
--helpimage
which will add an image to the right of any--helpmessage
. accepts any valid image type- e.g.
--helpmessage "Scan the QR code for help" --helpimage "qr=https://swiftdialog.app"
- e.g.
- Fixed #456 - Enable rounded corners when using base64 encoded images