Actions (from .desktop) are missing for gnome-terminal
I set up gnome-terminal actions in gnome-terminal.desktop file in ~/.local/share/applications/ folder. Basically, I set up preconfigured commands to connect some server with ssh. This was working fine and those actions were listed when I right clicked on the icons at the dock in Unity (16.04). After upgrade I can't see them anymore. They are still configured in gnome-terminal.desktop
Here are relevant lines:
https://pastebin.com/JVF98yRR
Also I am seeing this in the syslog:
failed to rescan: Failed to parse /home/user/.local/share/applications/gnome-terminal.desktop file: cannot process file of type application/x-desktop
Edit 1:
I realized one more thing. That error in the syslog appears only when I open the .desktop file, edit and save it (with nano). I guess, system checks if the file is edited (via inotify maybe?) and tries to scan it.
Edit 2:
As @Terrance suggested, I tried to login with different desktop environments. I had the following available:
- GNOME
- GNOME Flashback (Compiz)
- GNOME Flashback (Metacity)
- GNOME on Xorg
- Ubuntu (this was default)
- Ubuntu on Wayland
- Unity
Except for Unity and GNOME (1 and 7) I got the syslog error after editing the .desktop file. None of them showed the desktop action.
gnome gnome-terminal .desktop
|
show 1 more comment
I set up gnome-terminal actions in gnome-terminal.desktop file in ~/.local/share/applications/ folder. Basically, I set up preconfigured commands to connect some server with ssh. This was working fine and those actions were listed when I right clicked on the icons at the dock in Unity (16.04). After upgrade I can't see them anymore. They are still configured in gnome-terminal.desktop
Here are relevant lines:
https://pastebin.com/JVF98yRR
Also I am seeing this in the syslog:
failed to rescan: Failed to parse /home/user/.local/share/applications/gnome-terminal.desktop file: cannot process file of type application/x-desktop
Edit 1:
I realized one more thing. That error in the syslog appears only when I open the .desktop file, edit and save it (with nano). I guess, system checks if the file is edited (via inotify maybe?) and tries to scan it.
Edit 2:
As @Terrance suggested, I tried to login with different desktop environments. I had the following available:
- GNOME
- GNOME Flashback (Compiz)
- GNOME Flashback (Metacity)
- GNOME on Xorg
- Ubuntu (this was default)
- Ubuntu on Wayland
- Unity
Except for Unity and GNOME (1 and 7) I got the syslog error after editing the .desktop file. None of them showed the desktop action.
gnome gnome-terminal .desktop
1
Have you logged into Wayland or XOrg? You might need to login into XOrg.
– Terrance
Jan 9 at 23:59
1
You upgraded from 16.04 to... 18.04 I assume? It comes with newer gnome-terminal, and as such, newer corresponding .desktop file. The command line parameters you use are no longer all available. I recommend that you start over with the current official desktop file of gnome-terminal, and apply your modifications one by one, checking at every step if it still works or not. (This question sounds like one which probably you yourself could answer the most easily by bisecting between the working and the non-working versions, rather than anyone else spotting the issue.)
– egmont
Jan 10 at 10:21
@egmont I tried that. I simplified to find out what is wrong. It seems to be more complicated than that. I reinstalled the gnome-terminal to recreate .desktop file at /usr/share... Then I copied over to .local/share... Then I tried to add one more action as simple as possible. This gave my error already. I can't figure out what is wrong with it?! There is no documentation on the error either.
– Genom
Jan 11 at 10:24
1
What desktop environment are you logged into? Log out, click the cogwheel next to your name and see if XOrg is one of the options. The error is saying that it can't loadx-desktopwhich is not found in Wayland.
– Terrance
Jan 11 at 18:59
1
Log in with the GNOME on Xorg and try it again
– Terrance
Jan 11 at 21:40
|
show 1 more comment
I set up gnome-terminal actions in gnome-terminal.desktop file in ~/.local/share/applications/ folder. Basically, I set up preconfigured commands to connect some server with ssh. This was working fine and those actions were listed when I right clicked on the icons at the dock in Unity (16.04). After upgrade I can't see them anymore. They are still configured in gnome-terminal.desktop
Here are relevant lines:
https://pastebin.com/JVF98yRR
Also I am seeing this in the syslog:
failed to rescan: Failed to parse /home/user/.local/share/applications/gnome-terminal.desktop file: cannot process file of type application/x-desktop
Edit 1:
I realized one more thing. That error in the syslog appears only when I open the .desktop file, edit and save it (with nano). I guess, system checks if the file is edited (via inotify maybe?) and tries to scan it.
Edit 2:
As @Terrance suggested, I tried to login with different desktop environments. I had the following available:
- GNOME
- GNOME Flashback (Compiz)
- GNOME Flashback (Metacity)
- GNOME on Xorg
- Ubuntu (this was default)
- Ubuntu on Wayland
- Unity
Except for Unity and GNOME (1 and 7) I got the syslog error after editing the .desktop file. None of them showed the desktop action.
gnome gnome-terminal .desktop
I set up gnome-terminal actions in gnome-terminal.desktop file in ~/.local/share/applications/ folder. Basically, I set up preconfigured commands to connect some server with ssh. This was working fine and those actions were listed when I right clicked on the icons at the dock in Unity (16.04). After upgrade I can't see them anymore. They are still configured in gnome-terminal.desktop
Here are relevant lines:
https://pastebin.com/JVF98yRR
Also I am seeing this in the syslog:
failed to rescan: Failed to parse /home/user/.local/share/applications/gnome-terminal.desktop file: cannot process file of type application/x-desktop
Edit 1:
I realized one more thing. That error in the syslog appears only when I open the .desktop file, edit and save it (with nano). I guess, system checks if the file is edited (via inotify maybe?) and tries to scan it.
Edit 2:
As @Terrance suggested, I tried to login with different desktop environments. I had the following available:
- GNOME
- GNOME Flashback (Compiz)
- GNOME Flashback (Metacity)
- GNOME on Xorg
- Ubuntu (this was default)
- Ubuntu on Wayland
- Unity
Except for Unity and GNOME (1 and 7) I got the syslog error after editing the .desktop file. None of them showed the desktop action.
gnome gnome-terminal .desktop
gnome gnome-terminal .desktop
edited Jan 11 at 21:32
Genom
asked Jan 9 at 23:55
GenomGenom
607
607
1
Have you logged into Wayland or XOrg? You might need to login into XOrg.
– Terrance
Jan 9 at 23:59
1
You upgraded from 16.04 to... 18.04 I assume? It comes with newer gnome-terminal, and as such, newer corresponding .desktop file. The command line parameters you use are no longer all available. I recommend that you start over with the current official desktop file of gnome-terminal, and apply your modifications one by one, checking at every step if it still works or not. (This question sounds like one which probably you yourself could answer the most easily by bisecting between the working and the non-working versions, rather than anyone else spotting the issue.)
– egmont
Jan 10 at 10:21
@egmont I tried that. I simplified to find out what is wrong. It seems to be more complicated than that. I reinstalled the gnome-terminal to recreate .desktop file at /usr/share... Then I copied over to .local/share... Then I tried to add one more action as simple as possible. This gave my error already. I can't figure out what is wrong with it?! There is no documentation on the error either.
– Genom
Jan 11 at 10:24
1
What desktop environment are you logged into? Log out, click the cogwheel next to your name and see if XOrg is one of the options. The error is saying that it can't loadx-desktopwhich is not found in Wayland.
– Terrance
Jan 11 at 18:59
1
Log in with the GNOME on Xorg and try it again
– Terrance
Jan 11 at 21:40
|
show 1 more comment
1
Have you logged into Wayland or XOrg? You might need to login into XOrg.
– Terrance
Jan 9 at 23:59
1
You upgraded from 16.04 to... 18.04 I assume? It comes with newer gnome-terminal, and as such, newer corresponding .desktop file. The command line parameters you use are no longer all available. I recommend that you start over with the current official desktop file of gnome-terminal, and apply your modifications one by one, checking at every step if it still works or not. (This question sounds like one which probably you yourself could answer the most easily by bisecting between the working and the non-working versions, rather than anyone else spotting the issue.)
– egmont
Jan 10 at 10:21
@egmont I tried that. I simplified to find out what is wrong. It seems to be more complicated than that. I reinstalled the gnome-terminal to recreate .desktop file at /usr/share... Then I copied over to .local/share... Then I tried to add one more action as simple as possible. This gave my error already. I can't figure out what is wrong with it?! There is no documentation on the error either.
– Genom
Jan 11 at 10:24
1
What desktop environment are you logged into? Log out, click the cogwheel next to your name and see if XOrg is one of the options. The error is saying that it can't loadx-desktopwhich is not found in Wayland.
– Terrance
Jan 11 at 18:59
1
Log in with the GNOME on Xorg and try it again
– Terrance
Jan 11 at 21:40
1
1
Have you logged into Wayland or XOrg? You might need to login into XOrg.
– Terrance
Jan 9 at 23:59
Have you logged into Wayland or XOrg? You might need to login into XOrg.
– Terrance
Jan 9 at 23:59
1
1
You upgraded from 16.04 to... 18.04 I assume? It comes with newer gnome-terminal, and as such, newer corresponding .desktop file. The command line parameters you use are no longer all available. I recommend that you start over with the current official desktop file of gnome-terminal, and apply your modifications one by one, checking at every step if it still works or not. (This question sounds like one which probably you yourself could answer the most easily by bisecting between the working and the non-working versions, rather than anyone else spotting the issue.)
– egmont
Jan 10 at 10:21
You upgraded from 16.04 to... 18.04 I assume? It comes with newer gnome-terminal, and as such, newer corresponding .desktop file. The command line parameters you use are no longer all available. I recommend that you start over with the current official desktop file of gnome-terminal, and apply your modifications one by one, checking at every step if it still works or not. (This question sounds like one which probably you yourself could answer the most easily by bisecting between the working and the non-working versions, rather than anyone else spotting the issue.)
– egmont
Jan 10 at 10:21
@egmont I tried that. I simplified to find out what is wrong. It seems to be more complicated than that. I reinstalled the gnome-terminal to recreate .desktop file at /usr/share... Then I copied over to .local/share... Then I tried to add one more action as simple as possible. This gave my error already. I can't figure out what is wrong with it?! There is no documentation on the error either.
– Genom
Jan 11 at 10:24
@egmont I tried that. I simplified to find out what is wrong. It seems to be more complicated than that. I reinstalled the gnome-terminal to recreate .desktop file at /usr/share... Then I copied over to .local/share... Then I tried to add one more action as simple as possible. This gave my error already. I can't figure out what is wrong with it?! There is no documentation on the error either.
– Genom
Jan 11 at 10:24
1
1
What desktop environment are you logged into? Log out, click the cogwheel next to your name and see if XOrg is one of the options. The error is saying that it can't load
x-desktop which is not found in Wayland.– Terrance
Jan 11 at 18:59
What desktop environment are you logged into? Log out, click the cogwheel next to your name and see if XOrg is one of the options. The error is saying that it can't load
x-desktop which is not found in Wayland.– Terrance
Jan 11 at 18:59
1
1
Log in with the GNOME on Xorg and try it again
– Terrance
Jan 11 at 21:40
Log in with the GNOME on Xorg and try it again
– Terrance
Jan 11 at 21:40
|
show 1 more comment
1 Answer
1
active
oldest
votes
I finally figured it out with the help of @Terrance and @egmont.
It turns out to be that there are two Terminal .desktop entries:
- gnome-terminal.desktop (old probably remaining from 16.04)
- org.gnome.Terminal.desktop (new probably came with 18.04)
When I was searching for Terminal in "Activities" I was able to see two Terminal applications, one of which had the custom desktop action. Not the one on my dock. I found this question:
Ubuntu 18.04, standard Ubuntu Dock, multiple action syntax in .desktop file
An answer there mentions this double entry.
I renamed my file to the new name and it now has all the custom desktop entries. The syslog error is very misleading and I still don't get what it means. Maybe, the name doesn't correspond to any package? I don't know.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1108441%2factions-from-desktop-are-missing-for-gnome-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
I finally figured it out with the help of @Terrance and @egmont.
It turns out to be that there are two Terminal .desktop entries:
- gnome-terminal.desktop (old probably remaining from 16.04)
- org.gnome.Terminal.desktop (new probably came with 18.04)
When I was searching for Terminal in "Activities" I was able to see two Terminal applications, one of which had the custom desktop action. Not the one on my dock. I found this question:
Ubuntu 18.04, standard Ubuntu Dock, multiple action syntax in .desktop file
An answer there mentions this double entry.
I renamed my file to the new name and it now has all the custom desktop entries. The syslog error is very misleading and I still don't get what it means. Maybe, the name doesn't correspond to any package? I don't know.
add a comment |
I finally figured it out with the help of @Terrance and @egmont.
It turns out to be that there are two Terminal .desktop entries:
- gnome-terminal.desktop (old probably remaining from 16.04)
- org.gnome.Terminal.desktop (new probably came with 18.04)
When I was searching for Terminal in "Activities" I was able to see two Terminal applications, one of which had the custom desktop action. Not the one on my dock. I found this question:
Ubuntu 18.04, standard Ubuntu Dock, multiple action syntax in .desktop file
An answer there mentions this double entry.
I renamed my file to the new name and it now has all the custom desktop entries. The syslog error is very misleading and I still don't get what it means. Maybe, the name doesn't correspond to any package? I don't know.
add a comment |
I finally figured it out with the help of @Terrance and @egmont.
It turns out to be that there are two Terminal .desktop entries:
- gnome-terminal.desktop (old probably remaining from 16.04)
- org.gnome.Terminal.desktop (new probably came with 18.04)
When I was searching for Terminal in "Activities" I was able to see two Terminal applications, one of which had the custom desktop action. Not the one on my dock. I found this question:
Ubuntu 18.04, standard Ubuntu Dock, multiple action syntax in .desktop file
An answer there mentions this double entry.
I renamed my file to the new name and it now has all the custom desktop entries. The syslog error is very misleading and I still don't get what it means. Maybe, the name doesn't correspond to any package? I don't know.
I finally figured it out with the help of @Terrance and @egmont.
It turns out to be that there are two Terminal .desktop entries:
- gnome-terminal.desktop (old probably remaining from 16.04)
- org.gnome.Terminal.desktop (new probably came with 18.04)
When I was searching for Terminal in "Activities" I was able to see two Terminal applications, one of which had the custom desktop action. Not the one on my dock. I found this question:
Ubuntu 18.04, standard Ubuntu Dock, multiple action syntax in .desktop file
An answer there mentions this double entry.
I renamed my file to the new name and it now has all the custom desktop entries. The syslog error is very misleading and I still don't get what it means. Maybe, the name doesn't correspond to any package? I don't know.
answered Jan 12 at 14:00
GenomGenom
607
607
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1108441%2factions-from-desktop-are-missing-for-gnome-terminal%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
1
Have you logged into Wayland or XOrg? You might need to login into XOrg.
– Terrance
Jan 9 at 23:59
1
You upgraded from 16.04 to... 18.04 I assume? It comes with newer gnome-terminal, and as such, newer corresponding .desktop file. The command line parameters you use are no longer all available. I recommend that you start over with the current official desktop file of gnome-terminal, and apply your modifications one by one, checking at every step if it still works or not. (This question sounds like one which probably you yourself could answer the most easily by bisecting between the working and the non-working versions, rather than anyone else spotting the issue.)
– egmont
Jan 10 at 10:21
@egmont I tried that. I simplified to find out what is wrong. It seems to be more complicated than that. I reinstalled the gnome-terminal to recreate .desktop file at /usr/share... Then I copied over to .local/share... Then I tried to add one more action as simple as possible. This gave my error already. I can't figure out what is wrong with it?! There is no documentation on the error either.
– Genom
Jan 11 at 10:24
1
What desktop environment are you logged into? Log out, click the cogwheel next to your name and see if XOrg is one of the options. The error is saying that it can't load
x-desktopwhich is not found in Wayland.– Terrance
Jan 11 at 18:59
1
Log in with the GNOME on Xorg and try it again
– Terrance
Jan 11 at 21:40