LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Alacarte not saving menu changes (https://www.linuxquestions.org/questions/debian-26/alacarte-not-saving-menu-changes-4175474356/)

EDDY1 08-23-2013 12:26 AM

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.

rokytnji 08-23-2013 12:53 AM

Try changing GTK theme. Then reboot. See if it corrects itself.

EDDY1 10-26-2013 08:11 PM

I just reinstall Debian Jessie today & the same problem exists with alacarte.
Antone have any ideas how to correct?

EDDY1 02-28-2014 11:39 PM

Installed again 4 mos. later & this problem still exists

EDDY1 07-21-2014 02:17 AM

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?

Dan W 58 07-12-2020 08:41 PM

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?

Dan W 58 07-12-2020 09:35 PM

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?


All times are GMT -5. The time now is 05:25 PM.