Option to have Companion App use Powershell instead of cmd.exe to launch applications for file editing

XMLWordPrintable

      Issue Summary

      Companion App should have option to use Powershell to launch applications for file editing.

      Problem Definition

      In locked down Windows environments, cmd.exe can be disabled.

      1. Install Confluence in Windows + Confluence Companion App. Tested with Conf 9.5.4 + Companion App 2.5.0
      2. Create a page with file attachment eg test_document.rtf and publish
      3. Click on attachment to open preview, then click edit
      4. Companion App will open Wordpad  to edit the file as this is the application associated with .rtf file types.
        Companion App is hard coded to use cmd to open files for editing. The compannion log shows:
        info:	adc:file-manager 2026-01-22T19:48:48.456Z Test_file.rtf has an extension [rtf]
        info:	adc:file-manager 2026-01-22T19:48:48.457Z Trying to get file type using magic bytes:
        info:	adc:file-manager 2026-01-22T19:48:48.473Z File extension using magic bytes is: rtf
        info:	adc:file-manager 2026-01-22T19:48:48.473Z open file command: C:\Windows\System32\cmd /c start "" /b "C:\Users\Administrator\.atlassian-companion\55892772-2681-4765-b0cb-b4cf0546368d\Test_file.rtf"
        info:	adc:file-manager 2026-01-22T19:48:48.672Z File 55892772-2681-4765-b0cb-b4cf0546368d download successful
        

      Suggested Solution

      Instead of C:\Windows\System32\cmd to open the file, be able to configure Companion App to use Powershell.

      Why this is important

      There are hardened systems where users would like to use the Companion App to edit files in their preferred application.

      Workaround

      Required, if there is no workaround please state:
      Currently there is no known workaround for this behavior. A workaround will be added here when available

            Assignee:
            Unassigned
            Reporter:
            Mark Mcdougall
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: