* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*
* Author: Ryan Lortie <desrt@desrt.ca>
*/
path = g_strconcat ("/", app_id, NULL);
for (i = 0; path[i]; i++)
- if (path[i] == '.')
- path[i] = '/';
+ {
+ if (path[i] == '.')
+ path[i] = '/';
+ if (path[i] == '-')
+ path[i] = '_';
+ }
return path;
}
g_variant_builder_init (&builder, G_VARIANT_TYPE_VARDICT);
- if ((startup_id = g_getenv ("DESKTOP_STARTUP_iD")))
+ if ((startup_id = g_getenv ("DESKTOP_STARTUP_ID")))
g_variant_builder_add (&builder, "{sv}", "desktop-startup-id", g_variant_new_string (startup_id));
return g_variant_builder_end (&builder);
if (!parameter)
{
- g_printerr (_("error parsing action parameter: %s\n"), error->message);
+ gchar *context;
+
+ context = g_variant_parse_error_print_context (error, args[2]);
+ g_printerr (_("error parsing action parameter: %s\n"), context);
g_variant_builder_clear (¶ms);
g_error_free (error);
+ g_free (context);
return 1;
}