Unable to open Pinta from launcher but can open from terminal

Bug #1973429 reported by Oliver Dalton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
New
Undecided
Unassigned

Bug Description

OS: Xubuntu 22.04
Desktop Environment: XFCE 4.16
.NET version: 6.0.201 (have also tried 6.0.3)

Issue:
After installing Pinta 2.0.2 from the tarball I am unable to open it in the UI using pinta.desktop but can open it by running pinta in a terminal

Installation steps:
tar -xzf pinta-20.0.2.tar.gz
cd pinta-2.0.2/
./configure
make
sudo make install

What I've tried:

I tried running the following commands as per a few answers on Stack Exchange but no luck:
gio set myapp.desktop metadata::trusted yes
sudo chmod +x pinta.desktop

I also tried marking the Launcher as 'Run in terminal' and changing the command to:
sh -c 'pinta'
sh -c 'dotnet /usr/local/lib/pinta/Pinta.dll'

Revision history for this message
Cameron White (cameronwhite91) wrote :

Does it show up in your UI (e.g. application launcher) and just doesn't run, or is it not being picked up at all?

From https://wiki.archlinux.org/title/desktop_entries#Validation, I'm also not sure if you might need to update the desktop database after doing a manual install

Revision history for this message
Oliver Dalton (palsternakka) wrote :

It shows in the application launcher, it just doesn't run. After installing following the steps in my original post it creates the .desktop file in /usr/local/share/applications

I tried running desktop-file-validate on /usr/local/share/applications/desktop.pinta and that seemed to have no effect

I also tried copying the file to my home directory and following the steps in the above link to validate/install the .desktop file to ~/.local/share/applications and update the desktop database and it still doesn't run

Revision history for this message
Cameron White (cameronwhite91) wrote :

Thanks, one other thing to try might be launching the .desktop file from a terminal to see if there's any output (https://wiki.archlinux.org/title/desktop_entries#Run_a_desktop_file_from_a_terminal)

Revision history for this message
Oliver Dalton (palsternakka) wrote :

This works - so it would appear the issue is only when running the launcher through the UI

Not sure if this is relevant because every app seems to output this but I get -

(gtk-launch:966773): dbind-WARNING **: 04:01:27.595: Couldn't connect to accessibility bus: Failed to connect to socket /root/.cache/at-spi/bus_0.0: Permission denied

(Pinta:966777): dbind-WARNING **: 04:01:27.932: Couldn't connect to accessibility bus: Failed to connect to socket /root/.cache/at-spi/bus_0.0: Permission denied

Revision history for this message
Cameron White (cameronwhite91) wrote :

Thanks, that's good to know that it works okay launching the .desktop from a terminal
I think that warning is probably harmless / unrelated

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.