LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-23-2013, 12:26 AM   #1
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Alacarte not saving menu changes


I recently upgraded Firefox & found that when I go to alacarte to make link to firefox icon it won't save, not only does alacarte not work correctly but gedit is affected also. Obviously it is a config file but which would I make corrections to to get them working correctly? Here I have attached xsession errors.

Code:
/etc/gdm3/Xsession: Beginning session setup...
localuser:edward being added to access control list
openConnection: connect: No such file or directory
cannot connect to brltty at :0
GNOME_KEYRING_CONTROL=/home/edward/.cache/keyring-KqyZd8
GPG_AGENT_INFO=/home/edward/.cache/keyring-KqyZd8/gpg:0:1
GNOME_KEYRING_CONTROL=/home/edward/.cache/keyring-KqyZd8
GPG_AGENT_INFO=/home/edward/.cache/keyring-KqyZd8/gpg:0:1
GNOME_KEYRING_CONTROL=/home/edward/.cache/keyring-KqyZd8
GPG_AGENT_INFO=/home/edward/.cache/keyring-KqyZd8/gpg:0:1
GNOME_KEYRING_CONTROL=/home/edward/.cache/keyring-KqyZd8
GPG_AGENT_INFO=/home/edward/.cache/keyring-KqyZd8/gpg:0:1
SSH_AUTH_SOCK=/home/edward/.cache/keyring-KqyZd8/ssh

** (gnome-settings-daemon:7985): WARNING **: /usr/lib/gnome-settings-daemon-3.0/libupdates.so: undefined symbol: pk_control_set_root_async

** (gnome-settings-daemon:7985): WARNING **: Cannot load plugin 'Updates' since file '/usr/lib/gnome-settings-daemon-3.0/libupdates.so' cannot be read.

** (gnome-settings-daemon:7985): WARNING **: Error activating plugin 'Updates'
x-session-manager[7917]: WARNING: Failed to start app: Unable to start application: Failed to execute child process "kerneloops-applet" (No such file or directory)
Initializing nautilus-gdu extension
** Message: applet now removed from the notification area
      JS LOG: GNOME Shell started at Thu Aug 22 2013 21:53:09 GMT-0700 (PDT)
failed to create drawable
** Message: applet now embedded in the notification area
      JS LOG: Failed to add search provider "Documents": Gio.DBusError: Error calling StartServiceByName for org.gnome.Documents.SearchProvider: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/lib/gnome-documents/gnome-documents-search-provider exited with status 1

(tracker-miner-fs:8030): Tracker-WARNING **: Couldn't properly parse desktop file 'file:///home/edward/.local/share/applications/wine.desktop': 'Desktop file doesn't contain type'

(gnome-shell:8010): Clutter-WARNING **: The meta of type 'StScrollViewFade' with name 'fade' is not attached to the actor 'notification-scrollview'

(process:8168): GLib-CRITICAL **: g_slice_set_config: assertion `sys_page_size == 0' failed
Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x280007f (Mozilla Fi)
Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed.

(alacarte:8212): Gtk-CRITICAL **: gtk_accel_label_set_accel_closure: assertion `gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed

(alacarte:8212): Gtk-CRITICAL **: gtk_accel_label_set_accel_closure: assertion `gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed
Window manager warning: CurrentTime used to choose focus window; focus window may not be correct.
Window manager warning: Got a request to focus 0x1a00006 (Desktop) with a timestamp of 0.  This shouldn't happen!
Window manager warning: CurrentTime used to choose focus window; focus window may not be correct.
Window manager warning: Got a request to focus 0x1a00006 (Desktop) with a timestamp of 0.  This shouldn't happen!

(process:8270): GLib-CRITICAL **: g_slice_set_config: assertion `sys_page_size == 0' failed
Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0xc0007f (Mozilla Fi)
Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed.

(alacarte:8307): Gtk-CRITICAL **: gtk_accel_label_set_accel_closure: assertion `gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed

(alacarte:8307): Gtk-CRITICAL **: gtk_accel_label_set_accel_closure: assertion `gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed
Traceback (most recent call last):
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 77, in menuChanged
    self.loadUpdates()
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 82, in loadUpdates
    items, iter = item_tree.get_selection().get_selected()
AttributeError: 'NoneType' object has no attribute 'get_selected'
Traceback (most recent call last):
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 77, in menuChanged
    self.loadUpdates()
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 82, in loadUpdates
    items, iter = item_tree.get_selection().get_selected()
AttributeError: 'NoneType' object has no attribute 'get_selected'
Traceback (most recent call last):
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 77, in menuChanged
    self.loadUpdates()
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 82, in loadUpdates
    items, iter = item_tree.get_selection().get_selected()
AttributeError: 'NoneType' object has no attribute 'get_selected'
Traceback (most recent call last):
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 77, in menuChanged
    self.loadUpdates()
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 82, in loadUpdates
    items, iter = item_tree.get_selection().get_selected()
AttributeError: 'NoneType' object has no attribute 'get_selected'
Traceback (most recent call last):
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 77, in menuChanged
    self.loadUpdates()
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 82, in loadUpdates
    items, iter = item_tree.get_selection().get_selected()
AttributeError: 'NoneType' object has no attribute 'get_selected'
Traceback (most recent call last):
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 77, in menuChanged
    self.loadUpdates()
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 82, in loadUpdates
    items, iter = item_tree.get_selection().get_selected()
AttributeError: 'NoneType' object has no attribute 'get_selected'
Traceback (most recent call last):
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 77, in menuChanged
    self.loadUpdates()
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 82, in loadUpdates
    items, iter = item_tree.get_selection().get_selected()
AttributeError: 'NoneType' object has no attribute 'get_selected'
Traceback (most recent call last):
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 77, in menuChanged
    self.loadUpdates()
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 82, in loadUpdates
    items, iter = item_tree.get_selection().get_selected()
AttributeError: 'NoneType' object has no attribute 'get_selected'
Window manager warning: CurrentTime used to choose focus window; focus window may not be correct.
Window manager warning: Got a request to focus 0x1a00006 (Desktop) with a timestamp of 0.  This shouldn't happen!

(process:8368): GLib-CRITICAL **: g_slice_set_config: assertion `sys_page_size == 0' failed
Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0xc0007f (Mozilla Fi)
Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed.
Traceback (most recent call last):
Traceback (most recent call last):
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 77, in menuChanged
    self.loadUpdates()
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 82, in loadUpdates
    items, iter = item_tree.get_selection().get_selected()
AttributeError: 'NoneType' object has no attribute 'get_selected'
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 77, in menuChanged
    self.loadUpdates()
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 82, in loadUpdates
    items, iter = item_tree.get_selection().get_selected()
AttributeError: 'NoneType' object has no attribute 'get_selected'
      JS LOG: Removing an access point that was never added
Also I noticed that when I edit menu entry, Internet, it places an entry in Other but icon is not added.

Last edited by EDDY1; 08-23-2013 at 12:49 AM.
 
Old 08-23-2013, 12:53 AM   #2
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 19
Posts: 6,292
Blog Entries: 21

Rep: Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152
Try changing GTK theme. Then reboot. See if it corrects itself.
 
Old 10-26-2013, 08:11 PM   #3
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Original Poster
Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I just reinstall Debian Jessie today & the same problem exists with alacarte.
Antone have any ideas how to correct?
 
Old 02-28-2014, 11:39 PM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Original Poster
Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Installed again 4 mos. later & this problem still exists
 
Old 07-21-2014, 02:17 AM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Original Poster
Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Back at it again, maybe this time I can give more information.
Not sure if I have the right command, but, here goes.
Quote:
alacarte traceback

(alacarte:2406): Gtk-CRITICAL **: gtk_accel_label_set_accel_closure: assertion 'gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed

(alacarte:2406): Gtk-CRITICAL **: gtk_accel_label_set_accel_closure: assertion 'gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed
Traceback (most recent call last):
File "/usr/bin/alacarte", line 26, in <module>
main()
File "/usr/share/alacarte/Alacarte/MainWindow.py", line 464, in main
app.setMenuBasename(basename)
File "/usr/share/alacarte/Alacarte/MainWindow.py", line 62, in setMenuBasename
self.editor = MenuEditor(menu_basename)
File "/usr/share/alacarte/Alacarte/MenuEditor.py", line 36, in __init__
self.load()
File "/usr/share/alacarte/Alacarte/MenuEditor.py", line 49, in load
if not self.tree.load_sync():
gi._glib.GError: Failed to look up menu_file for "traceback"
Here is my Mainwindow.py
Quote:
line #464
app.setMenuBasename(basename)
line # 62
self.editor = MenuEditor(menu_basename)
Menueditor.py
Quote:
def get_default_menu():
prefix = os.environ.get('XDG_MENU_PREFIX', '')
return prefix + 'applications.menu'

class MenuEditor(object):
def __init__(self, basename=None):
basename = basename or get_default_menu()

self.tree = GMenu.Tree.new(basename, GMenu.TreeFlags.SHOW_EMPTY|GMenu.TreeFlags.INCLUDE_EXCLUDED|GMenu.TreeFlags.INCLUDE_NODISPLAY|GMenu. TreeFlags.SHOW_ALL_SEPARATORS|GMenu.TreeFlags.SORT_DISPLAY_NAME)
self.tree.connect('changed', self.menuChanged)
#36 self.load()


def load(self):
#49 if not self.tree.load_sync():
raise ValueError("can not load menu tree %r" % (self.tree.props.menu_basename,))
Obviously there's a problem with the lines marked in red, what changes should I make?

Last edited by EDDY1; 07-21-2014 at 02:25 AM.
 
Old 07-12-2020, 08:41 PM   #6
Dan W 58
LQ Newbie
 
Registered: Jul 2020
Location: Montreal
Distribution: lubuntu 20.04 using gdm3
Posts: 2

Rep: Reputation: Disabled
Hello, I'm new to posix and to this forum, though I've done som C++ in my years, so I'm not completely illiterate.
Anyways, I'm having the same problem as the OP with Alacarte.
This is an app from Hell, really. There's no help, no manual, no readme,no configuration file... I've no idea what menu file it is editing where, (and if I knew I wouldn't know if it's right). The error message it returns is a cryptic failed assertion, obviosly, though I would expect a released app to be compiled for release, without asserts... Anybody has any idea how to fix the problem?
Or, does anybody know a menu editor that works?
Or, does anybody care to join me writing one?
 
Old 07-12-2020, 09:35 PM   #7
Dan W 58
LQ Newbie
 
Registered: Jul 2020
Location: Montreal
Distribution: lubuntu 20.04 using gdm3
Posts: 2

Rep: Reputation: Disabled
Answering my own question. I just found out at another forum that alacarte is incompatible with lubuntu, and that currently there is no menu editor that uses Qt. I'd like to write one, but will need help, specially getting started. Anyone?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Alacarte not delete menu items. caa1980 Ubuntu 1 01-11-2009 05:25 PM
alacarte and Wine Application menu entries punktdawg Linux - Desktop 1 11-29-2007 11:49 AM
Alacarte menu item missing windsurfer Linux - Software 6 02-28-2007 02:58 AM
How to Change PATH Using Gnome Alacarte for Menu Item jimc52 Linux - General 1 12-26-2006 06:03 PM
LXer: Alacarte: GNOME's long overdue menu editor LXer Syndicated Linux News 0 09-19-2006 12:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration