I am in need of doing some diagnostics work with xdiagnose
, however when searching for it in the Activities Overview, and then clicking on it, absolutely nothing happens, when in the past it would ask me for my password so that I could run it as root.
I looked further into this and tried running it in Terminal, and this was the output from the command xdiagnose
:
Error: Must run as superuser
So why is it simply not prompting me for the password in the GUI with pkexec
as usual? I am able to run it with pkexec xdiagnose
in Terminal, but how come it doesn't prompt for the password as usual in the GUI? Is this a bug?
Information Update:
As requested, there was no output from the command:
grep -r 'xdiagnose' ~/.local/share/applications
And the output of this command grep -r 'xdiagnose' /usr/share/applications
was:
/usr/share/applications/xdiagnose.desktop:Name=xdiagnose
/usr/share/applications/xdiagnose.desktop:Exec=pkexec xdiagnose
/usr/share/applications/xdiagnose.desktop:Icon=/usr/share/xdiagnose/icons/microscope.svg
/usr/share/applications/xdiagnose.desktop:X-Ubuntu-Gettext-Domain=xdiagnose
The contents of the file is this:
[Desktop Entry]
Name=xdiagnose
GenericName=Diagnose Graphics Issues
Comment=X.org Diagnostic and Repair Utility
Exec=pkexec xdiagnose
Icon=/usr/share/xdiagnose/icons/microscope.svg
Terminal=false
Type=Application
Categories=System;Settings;
X-Ubuntu-Gettext-Domain=xdiagnose
I have reinstalled it with sudo apt-get install --reinstall xdiagnose
, however this seems to have made no difference at all to anything.
I have attempted to launch another application via the Activities Overview that uses pkexec
to start, and it works fine as normal.
Another this is that when I made the xdiagnose.desktop
file executable and ran it xdiagnose
still didn't start and this was the output:
./xdiagnose.desktop: line 1: [Desktop: command not found
./xdiagnose.desktop: line 3: Graphics: command not found
./xdiagnose.desktop: line 4: Diagnostic: command not found
/usr/lib/python3/dist-packages/xdiagnose/applet.py:30: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk
Error: Must run as superuser
./xdiagnose.desktop: line 9: Settings: command not found
./xdiagnose.desktop: line 10: X-Ubuntu-Gettext-Domain=xdiagnose: command not found
OS Information:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.10
Release: 15.10
Codename: wily
Flavour: Gnome
Gnome Version: 3.18
grep -r 'xdiagnose' ~/.local/share/applications
andgrep -r 'xdiagnose' /usr/share/applications
pkexec xdiagnose
in a terminal?