"sorry, you are not running GNOME or KDE" while running GNOME

Bug #1813428 reported by themusicgod1 on 2019-01-26
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport-symptoms (Ubuntu)
Brian Murray

Bug Description

1) run ubuntu-bug with no arguments
2) "What kind of problem do you want to report?"
"External or internal storage devices(e.g. USB sticks)"
3) OK
4) choose
"Removable storage device is not mounted automatically"
5) when ubuntu-bug says "please remove it ..."
physically remove USB thumb drive from computer.
6) when ubuntu-bug says "please plug it back in..."
physically plug USB thumb back in computer.


"sorry, you are not running GNOME or KDE automounting needs to be provided by your desktop environment"

oddly enough if you leave it in, instead of unplugging, it proceeds to report the bug as usual

usb thumb drive device:


Bus 001 Device 016: ID 10d6:1101 Actions Semiconductor Co., Ltd D-Wave 2GB MP4 Player / AK1025 MP3/MP4 Player

gnome: 3.28.2
OS type: 64 bit
ubuntu: bionic 18.04
  Installed: 2.20.9-0ubuntu7.5
  Candidate: 2.20.9-0ubuntu7.5

Brian Murray (brian-murray) wrote :

These guided questions come from apport-symptoms and apport presents them to the user, regardless this is likely an issue with apport-symptoms.

affects: apport (Ubuntu) → apport-symptoms (Ubuntu)
Brian Murray (brian-murray) wrote :

Something is wrong with the pgrep matching here, likely the process name.

126 def get_desktop_vfs(ui):
127 if subprocess.call(['pgrep', '-u', str(os.getuid()), '-x', 'gnome-session']) == 0:
128 return 'gvfs'
129 if subprocess.call(['pgrep', '-u', str(os.getuid()), '-x', 'ksmserver']) == 0:
130 return 'kdelibs5'

Changed in apport-symptoms (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Brian Murray (brian-murray) wrote :

So in Cosmic the process is now gnome-session-binary which is greater than 15 characters and per the pgrep man page:

"The process name used for matching is limited to the 15 characters present in the output of /proc/pid/stat. Use the -f option to match against the complete command line, /proc/pid/cmdline."

So this needs to be updated to the new binary name and the match should be switched from -x to -f so the code is clear about that which we are searching for.

Changed in apport-symptoms (Ubuntu):
assignee: nobody → Brian Murray (brian-murray)
status: Triaged → In Progress
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport-symptoms - 0.21

apport-symptoms (0.21) disco; urgency=medium

  * symptoms/storage.py: Fix the binary name for gnome-session and since its
    greater than 15 characters use -f with pgrep. (LP: #1813428)

 -- Brian Murray <email address hidden> Mon, 28 Jan 2019 09:40:15 -0800

Changed in apport-symptoms (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers