alex1701c / JetBrainsRunner

A Krunner Plugin which allows you to open your recent projects
GNU Lesser General Public License v3.0
55 stars 5 forks source link

WebStorm in Flatpak does not open Project #28

Closed DanielNoga closed 2 years ago

DanielNoga commented 2 years ago

I tested latest updates and both detection and opening works for IDEA with master and fix_flatpak_detection branch of subproject. But it looks Webstorm has different issue. Logs:

Found /var/lib/flatpak/exports/share/applications/com.jetbrains.IntelliJ-IDEA-Ultimate.desktop based on StartupWMClass
========== Manually Configured Jetbrains Applications ==========
/var/lib/flatpak/exports/share/applications/com.jetbrains.WebStorm.desktop
/home/daniel/.var/app/com.jetbrains.WebStorm/config/JetBrains/WebStorm2022.2/options/recentProjects.xml
Application path map: 
IntelliJ IDEA Ultimate ==> /var/lib/flatpak/exports/share/applications/com.jetbrains.IntelliJ-IDEA-Ultimate.desktop
WebStorm ==> /var/lib/flatpak/exports/share/applications/com.jetbrains.WebStorm.desktop
========== Custom Configured Applications ==========
Config file found for WebStorm <application>
  <component name="RecentProjectsManager">
    <option name="additionalInfo">
      <map>
        <entry key="/home/web/q/frontend-react">
          <value>
            <RecentProjectMetaInfo frameTitle="frontend-react – README.md" opened="true" projectWorkspaceId="1qFcJwk01lcroDtZvoUqjLuZBAn">
              <option name="activationTimestamp" value="1659207165031" />
              <option name="binFolder" value="$APPLICATION_HOME_DIR$/bin" />
              <option name="build" value="WS-222.3345.108" />
              <option name="buildTimestamp" value="1658513731783" />
              <frame x="260" y="20" width="1400" height="996" />
              <option name="productionCode" value="WS" />
              <option name="projectOpenTimestamp" value="1659205794891" />
            </RecentProjectMetaInfo>
          </value>
        </entry>
      </map>
    </option>
    <option name="lastOpenedProject" value="/home/web/q/frontend-react" />
  </component>
</application>
WebStorm file content is empty 
========== Find Available Config Folders ==========
WebStorm /home/daniel/.var/app/com.jetbrains.WebStorm/config/JetBrains/WebStorm2022.2
IntelliJIdea /home/daniel/.var/app/com.jetbrains.IntelliJ-IDEA-Ultimate/config/JetBrains/IntelliJIdea2022.2
IntelliJ IDEA Ultimate /home/daniel/.var/app/com.jetbrains.IntelliJ-IDEA-Ultimate/config/JetBrains/IntelliJIdea2022.2/options/  from alias
Config file found for IntelliJ IDEA Ultimate /home/daniel/.var/app/com.jetbrains.IntelliJ-IDEA-Ultimate/config/JetBrains/IntelliJIdea2022.2/options/recentProjects.xml
Config file found for IntelliJ IDEA Ultimate /home/daniel/.var/app/com.jetbrains.IntelliJ-IDEA-Ultimate/config/JetBrains/IntelliJIdea2022.2/options/recentProjects.xml
===== Recently used project folder for IntelliJ IDEA Ultimate=====
    /home/web/q/q-notifier
    /home/web/q/c
    /home/web/q/pcs
    /home/web/q/q-api-gateway

========== Filter Jetbrains Apps ==========

And desktop file:

[Desktop Entry]
Categories=Development;IDE;
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=webstorm com.jetbrains.WebStorm
GenericName=The smartest JavaScript IDE
Icon=com.jetbrains.WebStorm
Keywords=development;javascript;webstorm;
Name=WebStorm
StartupNotify=true
StartupWMClass=webstorm
Terminal=false
Type=Application
X-Flatpak-Tags=proprietary;
X-Flatpak=com.jetbrains.WebStorm

Originally posted by @DanielNoga in https://github.com/alex1701c/JetBrainsRunner/issues/27#issuecomment-1200278579

alex1701c commented 2 years ago

@DanielNoga This should now all be sorted out. Can you confirm?

alex1701c commented 2 years ago

Since I tested it locally, I am going to make a release and publish it to the KDE Store

DanielNoga commented 2 years ago

I am sorry to answering late, I wasn't on the work computer. But I can confirm, it everything works now with 1.9.0.

Thank you very much!