The Following User Says Thank You to DaSilva For This Useful Post: | ||
|
2010-01-16
, 13:56
|
|
Posts: 2,535 |
Thanked: 6,681 times |
Joined on Mar 2008
@ UK
|
#73
|
What do I have to add to a .desktop file to add it to a specific category in the menu?
Categories=Network;
Would this be enough to put a shortcut in the Network menu[?]
The Following 3 Users Say Thank You to Jaffa For This Useful Post: | ||
|
2010-01-16
, 14:23
|
|
Posts: 1,090 |
Thanked: 476 times |
Joined on Jan 2010
@ Ingolstadt, Germany
|
#74
|
|
2010-01-16
, 22:49
|
Posts: 13 |
Thanked: 5 times |
Joined on Nov 2009
|
#75
|
|
2010-01-16
, 23:15
|
|
Posts: 2,535 |
Thanked: 6,681 times |
Joined on Mar 2008
@ UK
|
#76
|
cp: cannot stat '/usr/share/themes/alpha/backgrounds/app_install_network.png': No such file or directory
|
2010-01-16
, 23:42
|
Posts: 13 |
Thanked: 5 times |
Joined on Nov 2009
|
#77
|
|
2010-01-17
, 00:42
|
Posts: 739 |
Thanked: 114 times |
Joined on Sep 2009
|
#78
|
The Following User Says Thank You to romanianusa For This Useful Post: | ||
|
2010-01-17
, 08:08
|
|
Posts: 2,535 |
Thanked: 6,681 times |
Joined on Mar 2008
@ UK
|
#79
|
(this is displayed in the shell )
The Following 3 Users Say Thank You to Jaffa For This Useful Post: | ||
|
2010-01-17
, 11:27
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#80
|
/*
* theme-updater-object
*
* Copyright (C) 2010 Faheem Pervez <Don't really feel like spam on this lovely morning>. All rights reserved.
*
* Licensed under:
*
* DO WHAT THE **** YOU WANT TO PUBLIC LICENSE
* Version 2, December 2004
*
* Copyright (C) 2004 Sam Hocevar
* 14 rue de Plaisance, 75014 Paris, France
* Everyone is permitted to copy and distribute verbatim or modified
* copies of this license document, and changing it is allowed as long
* as the name is changed.
*
* DO WHAT THE **** YOU WANT TO PUBLIC LICENSE
* TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
*
* 0. You just DO WHAT THE **** YOU WANT TO.
*
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The **** You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://sam.zoy.org/wtfpl/COPYING for more details.
*
*/
/* theme-updater-object.c */
#include <stdlib.h>
#include <glib.h>
#include <glib-object.h>
#include <libhildondesktop/libhildondesktop.h>
typedef struct
{
HDStatusPluginItem parent;
} ThemeUpdaterObject;
typedef struct
{
HDStatusPluginItemClass parent_class;
} ThemeUpdaterObjectClass;
HD_DEFINE_PLUGIN_MODULE (ThemeUpdaterObject, theme_updater_object, HD_TYPE_STATUS_PLUGIN_ITEM)
static void theme_updater_object_class_init (ThemeUpdaterObjectClass *klass G_GNUC_UNUSED)
{
}
static void theme_updater_object_class_finalize (ThemeUpdaterObjectClass *klass G_GNUC_UNUSED)
{
}
static void on_theme_changed (GObject *obj G_GNUC_UNUSED, GParamSpec *pspec G_GNUC_UNUSED, gpointer user_data G_GNUC_UNUSED)
{
static gboolean first_emission = TRUE; /* We recieve notification of the bloody theme changing twice! */
first_emission = !first_emission;
if (!first_emission)
return;
if (!system ("pidof catorise"))
return;
g_spawn_command_line_async ("/usr/bin/sudo /opt/catorise/catorise", NULL);
}
static void theme_updater_object_init (ThemeUpdaterObject *plugin G_GNUC_UNUSED)
{
g_signal_connect (G_OBJECT (gtk_settings_get_default ()), "notify::gtk-theme-name", G_CALLBACK (on_theme_changed), NULL);
}
user ALL = NOPASSWD: /opt/catorise/catorise
The Following User Says Thank You to qwerty12 For This Useful Post: | ||
Categories=Network;
Would this be enough to put a shortcut in the Network menu (using http://standards.freedesktop.org/men...egory-registry for other categories)? Because I have also found a X-Maemo-Category line in a .desktop file.
How can I update the menu without (un)installing anything or rebooting?
Thanks in advance.