Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upFedora 23: gnome-terminal.desktop doesn't exist #1428
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Nov 15, 2015
Member
Does /usr/share/applications/gnome-terminal.desktop exist at all (in
the VM)? Maybe it was renamed to something like org.gnome.terminal or
so (haven't fc23 system handy).
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
Does Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qjoo
Nov 16, 2015
You are right, it doesn't exist, sorry for the noise. (btw: wondering why I didn't get this reply via email)
qjoo
commented
Nov 16, 2015
|
You are right, it doesn't exist, sorry for the noise. (btw: wondering why I didn't get this reply via email) |
qjoo
closed this
Nov 16, 2015
marmarek
changed the title from
xdg.py:8:launch:TypeError: constructor returned NULL
to
Fedora 23: gnome-terminal.desktop doesn't exist
Nov 17, 2015
marmarek
reopened this
Nov 17, 2015
marmarek
added
bug
C: core
C: templates
P: major
labels
Nov 17, 2015
marmarek
added this to the Release 3.0 updates milestone
Nov 17, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mattmccutchen
Nov 30, 2015
Workaround: Run the following in dom0 (assuming all VMs are on Fedora 23 or newer, otherwise feel free to write and share a script to process only VMs based on one template):
sed -i -e 's,gnome-terminal\.desktop,org.gnome.Terminal.desktop,' /var/lib/qubes/*/*/*whitelisted-appmenus.list
And then:
#!/usr/bin/python2
from qubes.qubes import QubesVmCollection, QubesAdminVm
c = QubesVmCollection()
c.lock_db_for_reading()
c.load()
for vm in c.values():
if not isinstance(vm, QubesAdminVm):
vm.appmenus_recreate()
c.unlock_db()
mattmccutchen
commented
Nov 30, 2015
|
Workaround: Run the following in dom0 (assuming all VMs are on Fedora 23 or newer, otherwise feel free to write and share a script to process only VMs based on one template):
And then:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Nov 30, 2015
Member
qvm-sync-appmenus solved the issue for me. I had no need for any other workarounds.
|
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mattmccutchen
Nov 30, 2015
@axon-qubes: I believe I ran qvm-sync-appmenus and it did not help. Do you have a theory for how it worked for you? AIUI, as long as the *whitelisted-appmenus.list files refer to gnome-terminal.desktop, which does not exist in the VMs, no amount of qvm-sync-appmenus will solve the problem.
mattmccutchen
commented
Nov 30, 2015
|
@axon-qubes: I believe I ran |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Nov 30, 2015
Member
@mattmccutchen: Sorry, I have no idea. All I did was upgrade the template according to the documented instructions, reboot it, and run qvm-sync-appmenus in dom0. Then I had to readd the Terminal entry using Add/remove shortcuts for each VM based on the new template.
|
@mattmccutchen: Sorry, I have no idea. All I did was upgrade the template according to the documented instructions, reboot it, and run |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mattmccutchen
Nov 30, 2015
@axon-qubes: You didn't mention the "Add/remove shortcuts" part before. With that step, I'm willing to believe your procedure works, except I'm not sure it updates the default shortcuts for new VMs in /var/lib/qubes/vm-templates/*/{vm,netvm}-whitelisted-appmenus.list. My sed command covers those files and saves me doing "Add/remove shortcuts" manually for 14 VMs. It's plausible to me that the sed command followed by qvm-sync-appmenus would work (though I don't want to spend time retesting it now); if so, I think that's what we should recommend.
mattmccutchen
commented
Nov 30, 2015
|
@axon-qubes: You didn't mention the "Add/remove shortcuts" part before. With that step, I'm willing to believe your procedure works, except I'm not sure it updates the default shortcuts for new VMs in |
mattmccutchen
referenced this issue
in QubesOS/qubes-doc
Dec 5, 2015
Merged
Add Terminal shortcut to Fedora 23 known issues. #60
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Dec 5, 2015
Member
Follow up from QubesOS/qubes-doc#60:
What would trigger the replacement?
It would be a separate point in upgrade instruction.
Would two entries appear in the Applications tab in Qubes Manager?
I think no - it only displays entries which have the underlying files (and when you save, only those entries are stored in whitelisted-appmenus.list).
Could org.gnome.Terminal.desktop get removed from a Fedora 21 VM (either by the user removing a broken entry or automatically when an unrelated change is made), and then be missing when the VM is upgraded to Fedora 23?
I think this is exactly what currently is happening. Ough, only on R3.1 - QubesOS/qubes-issues#1411
The better solution might be to have qvm-sync-appmenus update the *whitelisted-appmenus.list files for a VM to match the desktop file present in the VM.
Theoretically yes, but there is no generic way to know that gnome-terminal.desktop is renamed to org.gnome.Terminal.desktop. Or maybe there is?
|
Follow up from QubesOS/qubes-doc#60:
It would be a separate point in upgrade instruction.
I think no - it only displays entries which have the underlying files (and when you save, only those entries are stored in
I think this is exactly what currently is happening. Ough, only on R3.1 - QubesOS/qubes-issues#1411
Theoretically yes, but there is no generic way to know that |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mattmccutchen
Dec 5, 2015
Theoretically yes, but there is no generic way to know that
gnome-terminal.desktopis renamed toorg.gnome.Terminal.desktop. Or maybe there is?
I was proposing to hard-code that pair and any future renames that affect the default whitelisted-appmenus.list entries of the official Qubes templates. (We could have a directory where third parties could add config files for other renames.) If whitelisted-appmenus.list contains gnome-terminal.desktop, but we see that the VM contains org.gnome.Terminal.desktop and not gnome-terminal.desktop, I don't see how we could be wrong to make the edit. Was that your question?
mattmccutchen
commented
Dec 5, 2015
I was proposing to hard-code that pair and any future renames that affect the default |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Dec 5, 2015
Member
whitelisted-appmenus.list is managed solely by dom0, VM have no influence over it. So that list need to be in dom0 (or somehow transferred to dom0). I think the better option would be to provide some script as part of upgrade instruction, not something integrated into qvm-sync-appmenus (or other generic tool). Especially when alternative exists - installing new template version (*).
(*) Yes, not yet available, building new one with #1490 fixed now...
|
(*) Yes, not yet available, building new one with #1490 fixed now... |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mattmccutchen
Dec 5, 2015
I think the better option would be to provide some script as part of upgrade instruction
As you prefer. I drafted one in QubesOS/qubes-core-admin-linux#4. Perhaps it should call qvm-sync-appmenus afterwards? You understand better than I do how this works.
mattmccutchen
commented
Dec 5, 2015
As you prefer. I drafted one in QubesOS/qubes-core-admin-linux#4. Perhaps it should call |
added a commit
to mattmccutchen/qubes-core-admin-linux
that referenced
this issue
Dec 5, 2015
mattmccutchen
referenced this issue
in QubesOS/qubes-core-admin-linux
Dec 5, 2015
Merged
Add qvm-appmenu-replace tool. #4
marmarek
referenced this issue
Jan 15, 2016
Closed
Inconsistencies in appmenu commands between fc21 and fc23 #1634
andrewdavidwong
added
the
C: Fedora
label
May 19, 2016
marmarek
modified the milestones:
Release 3.0 updates,
Release 3.1 updates
Nov 19, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
unman
Apr 17, 2017
Member
@andrewdavidwong I believe this issue is resolved in 3.2, and can be closed, since there's now a tool to help with issues such as this. (Cf #1634)
|
@andrewdavidwong I believe this issue is resolved in 3.2, and can be closed, since there's now a tool to help with issues such as this. (Cf #1634) |
qjoo commentedNov 15, 2015
When starting a gnome-terminal on fc23 I get:
qubes-core-vm-3.0.20-1.fc23