How to add manually installed software to gnome-software

Hello,

I’m having trouble figuring out how to add manually installed software to gnome-software in Gnome 3.14.1. These are applications (mostly games) that I have installed in /opt and /usr/local, with .desktop files in /usr/local/share/applications. They show up properly in the application list (Super Key->Show Applications), but they don’t exist in gnome-software. The reason I would like to add them is so I can group them into categories, the way it is described here: http://blogs.gnome.org/mclasen/2014/03/17/app-folder-configuration/.

Can anyone point me in the right direction on this? I’m willing to hack away at xml files if I need to. Thanks!

Hi
You need to ensure the ‘Categories’ entry in the desktop file is correct;
https://en.opensuse.org/openSUSE:Packaging_desktop_menu_categories
http://specifications.freedesktop.org/menu-spec/menu-spec-latest.html#category-registry

You can also use a X- option as well in the categories for your own. You would also need to run the update-desktop-database command, look at the man page for details.q

Thanks for your reply. I believe the categories entry in the desktop files are correct. Here is an example:


[Desktop Entry]
Categories=Game;
Encoding=UTF-8
Name=Bastion
GenericName=Bastion
Comment=Indie Action Role-Playing Game
Exec=bastion
Icon=/opt/bastion/Bastion.png
Type=Application

This program shows up in the “Show Applications” list, but not in gnome-software’s list of installed applications. I need it to appear in there, so that I can use gnome-software to create a custom category for it, the way the link I posted earlier describes. As I understand it, this is the only way to create groups of applications in the “Show Applications” list in Gnome 3.12+.

On Sat 31 Jan 2015 04:26:01 PM CST, keitolainen wrote:

Thanks for your reply. I believe the categories entry in the desktop
files are correct. Here is an example:

Code:

[Desktop Entry]
Categories=Game;
Encoding=UTF-8
Name=Bastion
GenericName=Bastion
Comment=Indie Action Role-Playing Game
Exec=bastion
Icon=/opt/bastion/Bastion.png
Type=Application


This program shows up in the “Show Applications” list, but not in
gnome-software’s list of installed applications. I need it to appear in
there, so that I can use gnome-software to create a custom category for
it, the way the link I posted earlier describes. As I understand it,
this is the only way to create groups of applications in the “Show
Applications” list in Gnome 3.12+.

Hi
You need to add a sub category from the list under ‘Game’ in the first
link.

When you say ‘gnome-software’ you mean the application? If so then that
needs a file called name.appdata.xml created living
in /usr/share/appdata (or in your case /usr/local/share/appdata).


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.36-38-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

Thanks! That was exactly what I was looking for. I copied /usr/share/appdata/sol.appdata.xml to /usr/local/share/appdata/bastion.appdata.xml and edited it appropriately, and it worked perfectly. It shows up in gnome-software (the application… sorry I should have specified), and I can add it to custom categories now. Thanks again.