I used right-click -> link to application in the context menu and it crashes. I usually use that to make the link to script. How do modify the above to do that?
Click icon -> open terminal window -> scanvirus -l -> hold open window after it scans.
Create New->Link to Application is not working, because it cannot find the templates files.
The error messagebox causes a crash.
The latter bug has been fixed recently, it caused crashes in many other places too.
I added a workaround for the former to our packages.
So this should work again after the next Frameworks update for Leap.
You can “fix” it yourself meanwhile though, by copying over the KDE4 template files from /usr/share/kde4/templates/ to /usr/share/templates/.
For this particular one you need linkProgram.desktop and .source/Program.desktop .
Exactly like in KDE4:
Click on “Advanced Options” on the “Application” tab, and tick “Run in terminal” and “Do not close when command exits”. http://wstaw.org/m/2016/02/20/props.png
Besides the above, which easily uses the graphical shortcut options,
You should be able to point your shortcut to konsole instead of your scanvirus app directly, eg assuming you also need elevated permissions
Note that at least based on your other posts related to your project, unless you include more code you can’t simply invoke your scanvirus app without also including the target file or folder.
I need superuser permissions. Most of the commands need it. In the command, I usually open a terminal window and enter PW. Then enter ‘scanvirus -l’. In the link, it should be ’ su -c scanvirus -l '.
I need to fix one bug before I can proceed to for icons for other systems, like gnome, red hat links. It’s a bit more flexible now for use on non-opensuse systems.
Can I open a gfx window directly as a superuser? I think it’s in KDE.