Forum › Forums › New users › New Users and General Questions › Run KDE Games From Desktop
- This topic has 6 replies, 4 voices, and was last updated Nov 27-1:06 pm by 70san.
-
AuthorPosts
-
August 14, 2021 at 4:02 am #64904Member
antixjim
I have several applications that I run from an icon on the desktop. I created these icons by going to /user/share/applications and dragging an application to the desktop. When I click on the icon on the desktop the applications runs.
I tried doing the same for some KDE games that I installed using the same technique, I received the following error when I clicked on the desktop icon: Unsupported character in ‘kpat -qwindowtitle %c %u in ‘user/share/applications/org.kde.pat.desktop’. kpat is a KDE Solitaire game which runs fine when selected from the Menu-Applications-Games.
Any thoughts on this error and if there is a way to fix it or work around it.
August 14, 2021 at 7:38 am #64913Member
Xecure
::I just installed the kdegames package, copied the .desktop of a random game from /usr/share/applications to the Desktop, and launched it from the desktop. It loaded OK from the desktop.
Which desktop session are you running?antiX Live system enthusiast.
General Live Boot Parameters for antiX.August 14, 2021 at 8:20 am #64917Member
Xecure
::OK. I can reproduce this error in rox desktop.
Unsupported escape character in 'kmahjongg -qwindowtitle %c' in '/usr/share/applications/org.kde.kmahjongg.desktop'
Rox seems to not like the %c option. For now create custom .desktop files (in ~/.local/share/applications for example). Copy them from /usr/share/applications and edit them so that the Exec= command only launches the program, and not change the Window title name. Example:
Exec=kmahjonggAnyone with experience using rox desktop may give better advice.
The other option is changing to a Space-icewm desktop, and copy the apps you want from /usr/share/applications to ~/Desktop, which will place them on the desktop with the correct name.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.August 14, 2021 at 1:04 pm #64930ModeratorBobC
::It’s just that the KDE .desktop files were designed to work with a KDE desktop, not a Rox one. I would say just to edit the title manually, or ask for help either from KDE or Rox. I’m not sure what the spec allows for to say which one has a problem.
August 14, 2021 at 1:14 pm #64932ModeratorBobC
::PS: The Gnome games work with less trouble and don’t drag as many hundreds of megabytes of other code as the KDE ones do. Try Aisleriot.
August 14, 2021 at 6:39 pm #64942Memberantixjim
::Thank you all for your comments. I did get the problem resolved. Here is what I did.
I have three KDE games installed: Checkers, Mahjongg, and Solitaire. I had tried to edit the /desktop file for Solitaire earlier and when I tried to save I got a response that the file was large and would be truncated if I saved it and may not work. So this time, after reading all your comments I clicked on each one from the desktop and found that Checkers worked, but the other two did not. I then examined all three /desktop files by opening each one as text. I found that the two files that did not work were over 100 lines (apparently for foreign language support), but the one for Checkers had only about 12 lines and it did not not include qwindowtitle on the exec line like the other two files. So I copied the 12 lines into an editor and created two files changing the program and icon references to Mahjongg and Solittaire and saved them to my Desktop folder. Finally, I dragged them to the desktop and tested them. They both worked. I am now a happy camper.
November 27, 2021 at 1:06 pm #71803Member70san
::Dica para quem instalou o kpat ou kpatience e não está conseguindo adicionar o icone na area de trabalho(desktop) faça o seguinte:
no menu de aplicativos vá em sistema > Rox filer como root
com o gerenciador de arquivos aberto vá em /usr/share/applications
localize o aplicativo org.kde.kpat.desktop agora clique com o direito nele e selecione a opção abrir como texto
localize a linha de execução Exec=kpat -qwindowtitle %c %u
faça alteração de
Exec=kpat -qwindowtitle %c %u
para
Exec=kpat
pronto agora basta salvar
para adicionar o icone na sua area de trabalho basta clicar/segurando e puxar.- This reply was modified 1 year, 5 months ago by 70san.
- This reply was modified 1 year, 5 months ago by 70san.
-
AuthorPosts
- You must be logged in to reply to this topic.