Bug 433731

Summary: Double clicking Icons on New or Custom Activity Desktop does nothing if using a custom Location instead of the default Desktop Folder
Product: [Unmaintained] kactivitymanagerd Reporter: Ben <globalunity>
Component: generalAssignee: Ivan Čukić <ivan.cukic>
Status: RESOLVED WORKSFORME    
Severity: normal CC: ericedlund2017, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.21.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ben 2021-02-28 06:51:47 UTC
SUMMARY: Double clicking Icons on New or Custom Activity Desktop does nothing if using a custom Location instead of the default Desktop Folder


STEPS TO REPRODUCE:

1. Create a New Activity
   Right Click on the desktop
   Select 'Show Activity Switcher'
   At the very bottom, click on '+ Create Activity...'
   Give the new Activity an Icon, a Name & Description
   Press OK

Change the "Location:" from the default settings of 'Desktop' to a custom made folder
Configure Desktop and Wallpaper > Location: Change this to custom location
Apply

2. Add an app icon to the desktop via right-clicking on an app from the Application Launcher menu and choosing
   Add to Desktop

3. Double click on the app icon on the desktop


OBSERVED RESULT:

The .desktop file is treated as a normal file with an attempt to open it up with another app


EXPECTED RESULT:

To run the actual app the icon represents, just like on the normal default activitys desktop


SOFTWARE/OS VERSIONS:

Linux/KDE Plasma: 

Operating System: openSUSE Tumbleweed 20210223
KDE Plasma Version: 5.21.0
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Kernel Version: 5.11.1-2.g992837b-default
OS Type: 64-bit
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-3570K CPU @ 3.40GHz
Memory: 15.5 GiB of RAM
Graphics Processor: AMD PITCAIRN


ADDITIONAL INFORMATION:

Double clicking Icons on New or Custom Activity Desktop does nothing if using a custom Location instead of the default Desktop Folder:




CONCLUSION:

Double clicking on .desktop files, either in the original Desktop folder or ones that have been copied into another folder
will not result in the application launching

Properties in any normal icon on the desktop, under TAB: Application, in field 'Command:' will show just an application name to run,
but no PATH from which to run it from

The only explanation i can think of for the application(s) being able to run in the normal default activity, is because the applications executables are already in the PATH (possibly the PATH Environment variable)

File Managers will just treat all .desktop files as a 'file to be run with an application'
It does not matter if the folder its either the normal Desktop folder or the path /usr/share/applications/ where there are also .desktop files

Custom Activitys also assume this same behavior as file managers, and treat all .desktop files as files to be 'opened' with an application
There is no recognition that the .desktop files are themselves pointers/links to actual executable apps.
Presumably the PATH to these apps is not seen in custom Activitys
Comment 1 Ben 2021-02-28 06:58:21 UTC
NOTE: This same issue also happens even if you select the Default Desktop Folder
      as a custom folder for 'Location:'
Comment 3 Eric Edlund 2022-08-14 14:37:34 UTC
I can't reproduce. Can you still repoduce?
Comment 4 Bug Janitor Service 2022-08-29 04:36:09 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2022-09-13 04:36:28 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!