Can a Gramps console icon be installed for the Linux desktop?

Background:

The Windows installer for Gramps 5.1 and earlier versions created two application shortcuts: one for the GUI version and another for the console version. (The grampsw and grampsd launchers were added for GrampsAIO-4.0.3-1) The console version provided more detailed error reporting, with errors being piped to both the console and log file. Recent changes (for 5.1 and enhanced for 5.2) created an automated build process for the installer, but resulted in the loss of the console shortcut option.

On Fedora 37, Gramps is available through the Applications menu, launching the GUI version. However, running Gramps from the terminal (which requires invoking Python explicitly and navigating path issues) provides additional diagnostic information.

Question:

Is it possible to create a custom .desktop file for Fedora that would add a “Gramps Console” entry to the Applications menu, mimicking the functionality of the former Windows console shortcut and providing easy access to the more verbose diagnostic output?

Perplexity AI responds

Yes, it’s possible to add a Gramps Console icon to the Fedora Applications list. Here’s how you can do it:

  1. Create a new .desktop file for the Gramps Console:
nano ~/.local/share/applications/gramps-console.desktop
  1. Add the following content to the file, adjusting the Exec line to match your Gramps installation:
[Desktop Entry]
Name=Gramps Console
Comment=Genealogy System (Console Version)
Exec=python3 /path/to/gramps/gramps.py 
Icon=gramps
Terminal=true
Type=Application
Categories=Office;Genealogy;
  1. Save the file and exit the text editor.

  2. Make the .desktop file executable:

chmod +x ~/.local/share/applications/gramps-console.desktop

This will create a new icon in your Applications list for Gramps Console, which will launch Gramps in a terminal window, providing the additional diagnostic information you’re looking for[1][6].

To ensure that Gramps is in your system path, you can add its directory to your PATH environment variable:

echo 'export PATH=$PATH:/path/to/gramps' >> ~/.bashrc
source ~/.bashrc

Replace /path/to/gramps with the actual path to your Gramps installation.

After completing these steps, you should see a new Gramps Console icon in your Applications menu, which will launch Gramps in a terminal window with more detailed error reporting.

Citations:
[1] How to add programs to GNOME's software list? - Fedora Discussion
[2] Application Launcher Customization on Fedora Linux | Syslogine Docs
[3] Is there a way to launch a commandline application with a desktop icon and have the terminal window be linked to the application icon? - Fedora Discussion
[4] Reddit - Dive into anything
[5] How to - Desktop App icon - Fedora Discussion
[6] Customize applications menu - Fedora Discussion
[7] Installing Gramps for Linux computers - Gramps
[8] FedoraForum.org

That -L will just list out the databases. Leave that off to start Gramps.

1 Like

original posting edited to remove the -L

Thanks

@emyoulation For AIO 5.2.3 and 6.0.0 on Windows I still get a console window option installed to the Windows start menu. I just tested 6.0.0 and it works as I expected - the console window remains open a visible while gramps is running. Is this what you meant?
The screenshot below shows gramps AIO 6.0.0-beta2

Close, but not quite.

In the Windows 10 screenshot below. The Gramps and Gramps console applications have been manually pinned (red outlined) and the Gramps application has been manually pinned (blue outline) to the taskbar.

The application shortcut was added to the desktop by default (not shown)

These pinning options were previous offered in the installer after selecting the language an dictionary options. (Or maybe it was in that same screen.)

I downloaded the AIO installer for 5.0.2-1. I do not see any options relating to shortcuts in the installer. I went all the way through to the point of the Install button.
The current code (6.0.0) installs

  1. a shortcut on the desktop
  2. a folder in the start menu with two shortcuts

the history for aio/grampsaio64.nsi.template, the installer, does not go back to 5.0 so I’m not able to see what it did History for aio/grampsaio64.nsi.template - gramps-project/gramps

You can manually pin a shortcut to the start menu by right clicking and selecting Pin to Start. This screenshot is from Windows 11:


There is also a Pin to Taskbar option under More >

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.