GNOME Bugzilla – Bug 575948
palimpsest: support commandline arguments
Last modified: 2009-03-31 20:35:41 UTC
Would be great if palimpsest can parse arguments from commandline... At least we need ability to select specified presentable on startup - e.g. clicking a notification balloon when disk is failing (gnome-settings-daemon extension -- bug 575572).
Created attachment 131529 [details] [review] 0003-Add-cmdline-options-to-specify-a-device.patch
+ { "device-file", 0, 0, G_OPTION_ARG_FILENAME, &device_file, N_("Device file to show"), N_("FILE") }, + { "presentable", 0, 0, G_OPTION_ARG_STRING, &presentable_id, N_("Presentable to show"), N_("ID") }, Not sure this makes sense. We should instead have --show-volume <device> Volume to show --show-drive <device> Drive to show In addition we need to handle single-instance properly; suggest to do this via libunique for now.
I've filed bug 577353 for the unique application issue.
Adding it as a dep then.
Created attachment 131742 [details] [review] another try
Created attachment 131747 [details] [review] redo on top of unique application support
Created attachment 131780 [details] [review] return nonzero exit code depending on unique response
(In reply to comment #7) > Created an attachment (id=131780) [edit] > return nonzero exit code depending on unique response > Committed, thanks! I've also nuked the nagging dialog in a subsequent commit.
Let's deal with the dialog issues in bug 577353.
Btw, I just added a patch to return a non-zero exit code if the requested drive/volume doesn't exist.