https://bugs.kde.org/show_bug.cgi?id=501362

            Bug ID: 501362
           Summary: When `$(command -v kwrite)` is set as the value of
                    `$Env:EDITOR`, `systemctl edit` generates an empty,
                    useless tab alongside the expected one.
    Classification: Applications
           Product: kate
           Version: 24.12.3
          Platform: Fedora RPMs
               URL: https://discuss.kde.org/t/disable-kde-monitor-brightne
                    ss-control/25134/13?u=rokejulianlockhart
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: kwrite
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: 4wy78...@rokejulianlockhart.addy.io
  Target Milestone: ---

Created attachment 179307
  --> https://bugs.kde.org/attachment.cgi?id=179307&action=edit
A Screenshot of KWrite `24.12.3-1.fc41.x86_64`'s Tabs for Comment 0.

SUMMARY
-------

When I invoke `systemctl --user edit plasma-powerdevil.service` with
`$Env:EDITOR` set to `$(command -v kwrite)`, the expected (`.conf`) content
opens in another, empty tab labelled “+4” appears too: [^1]

[1]:
https://discuss-cdn.kde.org/uploads/default/original/3X/8/b/8bbddb728e4ec2c00b134f8b4132d691cd83c56e.png

Additionally, the name of the tab does not correspond to the relevant `.conf`
file's filename.

STEPS TO REPRODUCE
------------------

~~~bash
#!/usr/bin/env bash
EDITOR="$(command -v kwrite)" && \ # `/usr/bin/kwrite`
systemctl --user edit plasma-powerdevil.service
~~~

EXPECTED RESULT
---------------

I should see solely one tab, and its name should correspond to the filename in
the CLI.

SOFTWARE/OS VERSIONS
--------------------

I'm using `kwrite-24.12.3-1.fc41.x86_64`. Regarding the OS & DE:

1.      ~~~YAML
        #!/usr/bin/env sh
        kinfo
        ~~~

2.      > ~~~YAML
        > Operating System: Fedora Linux 41
        > KDE Plasma Version: 6.3.2
        > KDE Frameworks Version: 6.11.0
        > Qt Version: 6.8.2
        > Kernel Version: 6.13.5-200.fc41.x86_64 (64-bit)
        > Graphics Platform: Wayland
        > Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
        > Memory: 30.4 GiB of RAM
        > Graphics Processor 1: AMD Radeon RX 5700
        > Graphics Processor 2: AMD Radeon Graphics
        > ~~~

ADDITIONAL INFORMATION
----------------------

[^1]:
[`discuss-cdn.kde.org/uploads/default/original/3X/8/b/8bbddb728e4ec2c00b134f8b4132d691cd83c56e.png`][1]

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to