Running .desktop files starts the terminal












1















I have created some .desktop files for some AppImages and they have all ran great up until I installed the Hyper Terminal. Now I get the following error:



Plasma

KDEInit could not launch 'Hyper':
Could not open library 'libkdeinit5_Hyper'.
Cannot load library libkdeinit5_Hyper: (libkdeinit5_Hyper: cannot open shared object file: No such file or directory)


I would like to fix this so that I can keep Hyper. I am using Kubuntu 18.04 with the latest updates. Will someone please help? Here is an example of the one I have for Minecraft:



[Desktop Entry]
Type=Application
Name=Minecraft
Comment=Minecraft
Icon=/home/AlphaGenius/Pictures/minecraft.png
Exec=/home/AlphaGenius/Minecraft/minecraft-launcher.sh
Terminal=true
Categories=Minecraft;Games
Name[en_US]=Minecraft.desktop


Here is another that I have for Cura:



[Desktop Entry]
Type=Application
Name=Cura
Comment=Cura
Icon=/home/AlphaGenius/Pictures/cura.png
Exec=/home/AlphaGenius/cura.AppImage
Terminal=true
Categories=Cura;Design
Name[en_US]=Cura.desktop


There may be better ways but I am just learning.










share|improve this question

























  • You mean you mention the terminal in the Exec line of the desktop file? Is that necessary? Please post an example.

    – cipricus
    Jan 12 at 19:07








  • 1





    I have updated my question with a couple of examples.

    – Jason Amerson
    Jan 12 at 19:39











  • So, you do not use Hyper in the Exec lines, yet Hyper is started when you run the desktop files. That is odd. What happens when you execute other desktop files, like those in usr/share/applications?

    – cipricus
    Jan 12 at 19:43













  • btw: the Minecraft desktop file doesn't execute an AppImage file, does it?

    – cipricus
    Jan 12 at 19:51











  • I figure out what I was doing wrong. I have added an answer to my own question. Thanks for your help!

    – Jason Amerson
    Jan 12 at 19:56
















1















I have created some .desktop files for some AppImages and they have all ran great up until I installed the Hyper Terminal. Now I get the following error:



Plasma

KDEInit could not launch 'Hyper':
Could not open library 'libkdeinit5_Hyper'.
Cannot load library libkdeinit5_Hyper: (libkdeinit5_Hyper: cannot open shared object file: No such file or directory)


I would like to fix this so that I can keep Hyper. I am using Kubuntu 18.04 with the latest updates. Will someone please help? Here is an example of the one I have for Minecraft:



[Desktop Entry]
Type=Application
Name=Minecraft
Comment=Minecraft
Icon=/home/AlphaGenius/Pictures/minecraft.png
Exec=/home/AlphaGenius/Minecraft/minecraft-launcher.sh
Terminal=true
Categories=Minecraft;Games
Name[en_US]=Minecraft.desktop


Here is another that I have for Cura:



[Desktop Entry]
Type=Application
Name=Cura
Comment=Cura
Icon=/home/AlphaGenius/Pictures/cura.png
Exec=/home/AlphaGenius/cura.AppImage
Terminal=true
Categories=Cura;Design
Name[en_US]=Cura.desktop


There may be better ways but I am just learning.










share|improve this question

























  • You mean you mention the terminal in the Exec line of the desktop file? Is that necessary? Please post an example.

    – cipricus
    Jan 12 at 19:07








  • 1





    I have updated my question with a couple of examples.

    – Jason Amerson
    Jan 12 at 19:39











  • So, you do not use Hyper in the Exec lines, yet Hyper is started when you run the desktop files. That is odd. What happens when you execute other desktop files, like those in usr/share/applications?

    – cipricus
    Jan 12 at 19:43













  • btw: the Minecraft desktop file doesn't execute an AppImage file, does it?

    – cipricus
    Jan 12 at 19:51











  • I figure out what I was doing wrong. I have added an answer to my own question. Thanks for your help!

    – Jason Amerson
    Jan 12 at 19:56














1












1








1


1






I have created some .desktop files for some AppImages and they have all ran great up until I installed the Hyper Terminal. Now I get the following error:



Plasma

KDEInit could not launch 'Hyper':
Could not open library 'libkdeinit5_Hyper'.
Cannot load library libkdeinit5_Hyper: (libkdeinit5_Hyper: cannot open shared object file: No such file or directory)


I would like to fix this so that I can keep Hyper. I am using Kubuntu 18.04 with the latest updates. Will someone please help? Here is an example of the one I have for Minecraft:



[Desktop Entry]
Type=Application
Name=Minecraft
Comment=Minecraft
Icon=/home/AlphaGenius/Pictures/minecraft.png
Exec=/home/AlphaGenius/Minecraft/minecraft-launcher.sh
Terminal=true
Categories=Minecraft;Games
Name[en_US]=Minecraft.desktop


Here is another that I have for Cura:



[Desktop Entry]
Type=Application
Name=Cura
Comment=Cura
Icon=/home/AlphaGenius/Pictures/cura.png
Exec=/home/AlphaGenius/cura.AppImage
Terminal=true
Categories=Cura;Design
Name[en_US]=Cura.desktop


There may be better ways but I am just learning.










share|improve this question
















I have created some .desktop files for some AppImages and they have all ran great up until I installed the Hyper Terminal. Now I get the following error:



Plasma

KDEInit could not launch 'Hyper':
Could not open library 'libkdeinit5_Hyper'.
Cannot load library libkdeinit5_Hyper: (libkdeinit5_Hyper: cannot open shared object file: No such file or directory)


I would like to fix this so that I can keep Hyper. I am using Kubuntu 18.04 with the latest updates. Will someone please help? Here is an example of the one I have for Minecraft:



[Desktop Entry]
Type=Application
Name=Minecraft
Comment=Minecraft
Icon=/home/AlphaGenius/Pictures/minecraft.png
Exec=/home/AlphaGenius/Minecraft/minecraft-launcher.sh
Terminal=true
Categories=Minecraft;Games
Name[en_US]=Minecraft.desktop


Here is another that I have for Cura:



[Desktop Entry]
Type=Application
Name=Cura
Comment=Cura
Icon=/home/AlphaGenius/Pictures/cura.png
Exec=/home/AlphaGenius/cura.AppImage
Terminal=true
Categories=Cura;Design
Name[en_US]=Cura.desktop


There may be better ways but I am just learning.







kubuntu kde .desktop






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 12 at 20:43









cipricus

10.3k47173342




10.3k47173342










asked Jan 12 at 18:56









Jason AmersonJason Amerson

184




184













  • You mean you mention the terminal in the Exec line of the desktop file? Is that necessary? Please post an example.

    – cipricus
    Jan 12 at 19:07








  • 1





    I have updated my question with a couple of examples.

    – Jason Amerson
    Jan 12 at 19:39











  • So, you do not use Hyper in the Exec lines, yet Hyper is started when you run the desktop files. That is odd. What happens when you execute other desktop files, like those in usr/share/applications?

    – cipricus
    Jan 12 at 19:43













  • btw: the Minecraft desktop file doesn't execute an AppImage file, does it?

    – cipricus
    Jan 12 at 19:51











  • I figure out what I was doing wrong. I have added an answer to my own question. Thanks for your help!

    – Jason Amerson
    Jan 12 at 19:56



















  • You mean you mention the terminal in the Exec line of the desktop file? Is that necessary? Please post an example.

    – cipricus
    Jan 12 at 19:07








  • 1





    I have updated my question with a couple of examples.

    – Jason Amerson
    Jan 12 at 19:39











  • So, you do not use Hyper in the Exec lines, yet Hyper is started when you run the desktop files. That is odd. What happens when you execute other desktop files, like those in usr/share/applications?

    – cipricus
    Jan 12 at 19:43













  • btw: the Minecraft desktop file doesn't execute an AppImage file, does it?

    – cipricus
    Jan 12 at 19:51











  • I figure out what I was doing wrong. I have added an answer to my own question. Thanks for your help!

    – Jason Amerson
    Jan 12 at 19:56

















You mean you mention the terminal in the Exec line of the desktop file? Is that necessary? Please post an example.

– cipricus
Jan 12 at 19:07







You mean you mention the terminal in the Exec line of the desktop file? Is that necessary? Please post an example.

– cipricus
Jan 12 at 19:07






1




1





I have updated my question with a couple of examples.

– Jason Amerson
Jan 12 at 19:39





I have updated my question with a couple of examples.

– Jason Amerson
Jan 12 at 19:39













So, you do not use Hyper in the Exec lines, yet Hyper is started when you run the desktop files. That is odd. What happens when you execute other desktop files, like those in usr/share/applications?

– cipricus
Jan 12 at 19:43







So, you do not use Hyper in the Exec lines, yet Hyper is started when you run the desktop files. That is odd. What happens when you execute other desktop files, like those in usr/share/applications?

– cipricus
Jan 12 at 19:43















btw: the Minecraft desktop file doesn't execute an AppImage file, does it?

– cipricus
Jan 12 at 19:51





btw: the Minecraft desktop file doesn't execute an AppImage file, does it?

– cipricus
Jan 12 at 19:51













I figure out what I was doing wrong. I have added an answer to my own question. Thanks for your help!

– Jason Amerson
Jan 12 at 19:56





I figure out what I was doing wrong. I have added an answer to my own question. Thanks for your help!

– Jason Amerson
Jan 12 at 19:56










1 Answer
1






active

oldest

votes


















0














The problem was the line Terminal=true.





I got it to work now. I added %U to the end of the exec line and then changed the terminal to false. Now it works like it should. Thank you @cipricus for helping me and leading me in the right direction. The modified script is as follows:



[Desktop Entry]
Type=Application
Name=Cura
Comment=Cura
Icon=/home/AlphaGenius/Pictures/cura.png
Exec="/home/AlphaGenius/cura.AppImage" %U
Terminal=false
Categories=Cura;Design
Name[en_US]=Cura.desktop





share|improve this answer


























  • What does the %U mean? And did you fix the Minecraft launcher the same way?

    – wjandrea
    Jan 12 at 20:00








  • 1





    I haven't noticed the Terminal=true line. That is the cause, you can simply remove the Terminal line altogether, and I think %U is not needed if all you want is execute the program. It would be needed (%f, %F, %u or %U) if you want to open files with it by selecting them. But then you need the Mimetype line.

    – cipricus
    Jan 12 at 20:04













  • @wjandrea - askubuntu.com/q/30210/47206, but I guess such arguments are not necessarily needed, unless you use the application in order to launch multiple selected files.

    – cipricus
    Jan 12 at 20:05













  • @cipricus - I think you are right about the Terminal line.

    – Jason Amerson
    Jan 12 at 20:09











  • note that in case you want to start/open/run/play files in an AppImage program (and associate file types to that program) you will need a Mimetype= line in your .desktop file.

    – cipricus
    Jan 13 at 13:03











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1109192%2frunning-desktop-files-starts-the-terminal%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














The problem was the line Terminal=true.





I got it to work now. I added %U to the end of the exec line and then changed the terminal to false. Now it works like it should. Thank you @cipricus for helping me and leading me in the right direction. The modified script is as follows:



[Desktop Entry]
Type=Application
Name=Cura
Comment=Cura
Icon=/home/AlphaGenius/Pictures/cura.png
Exec="/home/AlphaGenius/cura.AppImage" %U
Terminal=false
Categories=Cura;Design
Name[en_US]=Cura.desktop





share|improve this answer


























  • What does the %U mean? And did you fix the Minecraft launcher the same way?

    – wjandrea
    Jan 12 at 20:00








  • 1





    I haven't noticed the Terminal=true line. That is the cause, you can simply remove the Terminal line altogether, and I think %U is not needed if all you want is execute the program. It would be needed (%f, %F, %u or %U) if you want to open files with it by selecting them. But then you need the Mimetype line.

    – cipricus
    Jan 12 at 20:04













  • @wjandrea - askubuntu.com/q/30210/47206, but I guess such arguments are not necessarily needed, unless you use the application in order to launch multiple selected files.

    – cipricus
    Jan 12 at 20:05













  • @cipricus - I think you are right about the Terminal line.

    – Jason Amerson
    Jan 12 at 20:09











  • note that in case you want to start/open/run/play files in an AppImage program (and associate file types to that program) you will need a Mimetype= line in your .desktop file.

    – cipricus
    Jan 13 at 13:03
















0














The problem was the line Terminal=true.





I got it to work now. I added %U to the end of the exec line and then changed the terminal to false. Now it works like it should. Thank you @cipricus for helping me and leading me in the right direction. The modified script is as follows:



[Desktop Entry]
Type=Application
Name=Cura
Comment=Cura
Icon=/home/AlphaGenius/Pictures/cura.png
Exec="/home/AlphaGenius/cura.AppImage" %U
Terminal=false
Categories=Cura;Design
Name[en_US]=Cura.desktop





share|improve this answer


























  • What does the %U mean? And did you fix the Minecraft launcher the same way?

    – wjandrea
    Jan 12 at 20:00








  • 1





    I haven't noticed the Terminal=true line. That is the cause, you can simply remove the Terminal line altogether, and I think %U is not needed if all you want is execute the program. It would be needed (%f, %F, %u or %U) if you want to open files with it by selecting them. But then you need the Mimetype line.

    – cipricus
    Jan 12 at 20:04













  • @wjandrea - askubuntu.com/q/30210/47206, but I guess such arguments are not necessarily needed, unless you use the application in order to launch multiple selected files.

    – cipricus
    Jan 12 at 20:05













  • @cipricus - I think you are right about the Terminal line.

    – Jason Amerson
    Jan 12 at 20:09











  • note that in case you want to start/open/run/play files in an AppImage program (and associate file types to that program) you will need a Mimetype= line in your .desktop file.

    – cipricus
    Jan 13 at 13:03














0












0








0







The problem was the line Terminal=true.





I got it to work now. I added %U to the end of the exec line and then changed the terminal to false. Now it works like it should. Thank you @cipricus for helping me and leading me in the right direction. The modified script is as follows:



[Desktop Entry]
Type=Application
Name=Cura
Comment=Cura
Icon=/home/AlphaGenius/Pictures/cura.png
Exec="/home/AlphaGenius/cura.AppImage" %U
Terminal=false
Categories=Cura;Design
Name[en_US]=Cura.desktop





share|improve this answer















The problem was the line Terminal=true.





I got it to work now. I added %U to the end of the exec line and then changed the terminal to false. Now it works like it should. Thank you @cipricus for helping me and leading me in the right direction. The modified script is as follows:



[Desktop Entry]
Type=Application
Name=Cura
Comment=Cura
Icon=/home/AlphaGenius/Pictures/cura.png
Exec="/home/AlphaGenius/cura.AppImage" %U
Terminal=false
Categories=Cura;Design
Name[en_US]=Cura.desktop






share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 12 at 20:15









cipricus

10.3k47173342




10.3k47173342










answered Jan 12 at 19:55









Jason AmersonJason Amerson

184




184













  • What does the %U mean? And did you fix the Minecraft launcher the same way?

    – wjandrea
    Jan 12 at 20:00








  • 1





    I haven't noticed the Terminal=true line. That is the cause, you can simply remove the Terminal line altogether, and I think %U is not needed if all you want is execute the program. It would be needed (%f, %F, %u or %U) if you want to open files with it by selecting them. But then you need the Mimetype line.

    – cipricus
    Jan 12 at 20:04













  • @wjandrea - askubuntu.com/q/30210/47206, but I guess such arguments are not necessarily needed, unless you use the application in order to launch multiple selected files.

    – cipricus
    Jan 12 at 20:05













  • @cipricus - I think you are right about the Terminal line.

    – Jason Amerson
    Jan 12 at 20:09











  • note that in case you want to start/open/run/play files in an AppImage program (and associate file types to that program) you will need a Mimetype= line in your .desktop file.

    – cipricus
    Jan 13 at 13:03



















  • What does the %U mean? And did you fix the Minecraft launcher the same way?

    – wjandrea
    Jan 12 at 20:00








  • 1





    I haven't noticed the Terminal=true line. That is the cause, you can simply remove the Terminal line altogether, and I think %U is not needed if all you want is execute the program. It would be needed (%f, %F, %u or %U) if you want to open files with it by selecting them. But then you need the Mimetype line.

    – cipricus
    Jan 12 at 20:04













  • @wjandrea - askubuntu.com/q/30210/47206, but I guess such arguments are not necessarily needed, unless you use the application in order to launch multiple selected files.

    – cipricus
    Jan 12 at 20:05













  • @cipricus - I think you are right about the Terminal line.

    – Jason Amerson
    Jan 12 at 20:09











  • note that in case you want to start/open/run/play files in an AppImage program (and associate file types to that program) you will need a Mimetype= line in your .desktop file.

    – cipricus
    Jan 13 at 13:03

















What does the %U mean? And did you fix the Minecraft launcher the same way?

– wjandrea
Jan 12 at 20:00







What does the %U mean? And did you fix the Minecraft launcher the same way?

– wjandrea
Jan 12 at 20:00






1




1





I haven't noticed the Terminal=true line. That is the cause, you can simply remove the Terminal line altogether, and I think %U is not needed if all you want is execute the program. It would be needed (%f, %F, %u or %U) if you want to open files with it by selecting them. But then you need the Mimetype line.

– cipricus
Jan 12 at 20:04







I haven't noticed the Terminal=true line. That is the cause, you can simply remove the Terminal line altogether, and I think %U is not needed if all you want is execute the program. It would be needed (%f, %F, %u or %U) if you want to open files with it by selecting them. But then you need the Mimetype line.

– cipricus
Jan 12 at 20:04















@wjandrea - askubuntu.com/q/30210/47206, but I guess such arguments are not necessarily needed, unless you use the application in order to launch multiple selected files.

– cipricus
Jan 12 at 20:05







@wjandrea - askubuntu.com/q/30210/47206, but I guess such arguments are not necessarily needed, unless you use the application in order to launch multiple selected files.

– cipricus
Jan 12 at 20:05















@cipricus - I think you are right about the Terminal line.

– Jason Amerson
Jan 12 at 20:09





@cipricus - I think you are right about the Terminal line.

– Jason Amerson
Jan 12 at 20:09













note that in case you want to start/open/run/play files in an AppImage program (and associate file types to that program) you will need a Mimetype= line in your .desktop file.

– cipricus
Jan 13 at 13:03





note that in case you want to start/open/run/play files in an AppImage program (and associate file types to that program) you will need a Mimetype= line in your .desktop file.

– cipricus
Jan 13 at 13:03


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1109192%2frunning-desktop-files-starts-the-terminal%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

Eduardo VII do Reino Unido