<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>411430</bug_id>
          
          <creation_ts>2019-08-29 17:39:38 +0000</creation_ts>
          <short_desc>KWin Scripts: Configure button missing after installation</short_desc>
          <delta_ts>2022-01-03 15:13:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>systemsettings</product>
          <component>kcm_kwin_scripts</component>
          <version>5.16.4</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>423272</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Marco Zaccari">info</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>natalie_clarius</cc>
    
    <cc>nate</cc>
    
    <cc>plasma-bugs-null</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1877651</commentid>
    <comment_count>0</comment_count>
    <who name="Marco Zaccari">info</who>
    <bug_when>2019-08-29 17:39:38 +0000</bug_when>
    <thetext>SUMMARY
Installing KWin Scripts by System Settings the Configure button is never visible.
The issue also occour by manual installation.

STEPS TO REPRODUCE
1. open systemsettings, &quot;Window Management&quot; &gt; &quot;KWin Scripts&quot; section
2. click &quot;Get New Scripts..&quot; or &quot;Install from File...&quot; button
3. install some services (and optionally close and reopen systemsettings)

Manual installation:
1. download a .kwinscript file
2. install typing: kpackagetool5 -r something.kwinscript
3. open systemsettings and look at &quot;Window Management&quot; &gt; &quot;KWin Scripts&quot; section

Example scripts with own configuration:
Sticky Window Snapping: https://store.kde.org/p/1112552
Tiling: https://store.kde.org/p/1112554

OBSERVED RESULT
The service was installed correctly, but the Configure button is never visible (for any services that expose it).

EXPECTED RESULT
The Configure button should be visible after service installation.

SOFTWARE/OS VERSIONS
Linux: Arch
KDE Plasma Version: 5.16.4
KDE Frameworks Version: 5.61.0
Qt Version: 5.13.0

Issue still present in this system too:
Linux: Kubuntu 19.04
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2


ADDITIONAL INFORMATION
The cause of the issue is that the metadata.desktop file is never copied or symlinked into ~/.local/share/kservices5/ path.

Manually making a symlink seems to work perfectly:
mkdir -p ~/.local/share/kservices5
ln -s ~/.local/share/kwin/scripts/something/metadata.desktop ~/.local/share/kservices5/kwin-script-something.desktop

Further references:
https://techbase.kde.org/Development/Tutorials/Plasma4/PackageOverview
&quot;Installation. By default, the metadata.desktop is copied into the the services directory...&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1877659</commentid>
    <comment_count>1</comment_count>
    <who name="Marco Zaccari">info</who>
    <bug_when>2019-08-29 20:18:50 +0000</bug_when>
    <thetext>Errata corrige...

Manual installation:
2. install typing: kpackagetool5 --type kwinscript -i something.kwinscript</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1946939</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-07-28 19:06:48 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 423272 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>