Comment 10 for bug 1610508

Revision history for this message
moma (osmoma) wrote : Re: [Bug 1610508] Re: Feature request: Always ask where to save file?

Ok, very good.

1) Download the source of audio-recorder to your computer.
Ref: https://code.launchpad.net/audio-recorder

Read README and INSTALL files.
http://bazaar.launchpad.net/~audio-recorder/audio-recorder/trunk/view/head:/INSTALL

Learn to compile and run the program.
Remember to kill the existing audio-recorder before testing your local copy
from .../src/

$ pkill audio-recorder
------

2) Find a suitable place to add the new code.
http://bazaar.launchpad.net/~audio-recorder/audio-recorder/trunk/files/head:/src/

See gst-recorder.c file and function

void rec_stop_recording(gboolean delete_file) {
...
}
Add the code there.
--------

3) The code must check if the recorded file is valid (if it exists and its
size is > 0)
The code must check if the lastly recorded audio file is already in the
xbel recent list. Do not add duplicates.
Ref: https://developer.gnome.org/gtk3/stable/GtkRecentManager.html

gtk_recent_manager_has_item ()

Let me know about your results.
Good luck.

Kindly
  Moma

On Sun, Aug 7, 2016 at 12:28 PM, Robert Orzanna <email address hidden> wrote:

> Great! So, how do we proceed from here to bake the code into? :-)
>
> ~Robert
>
> --
> You received this bug notification because you are subscribed to Audio
> Recorder.
> https://bugs.launchpad.net/bugs/1610508
>
> Title:
> Feature request: Always ask where to save file?
>
> Status in Audio Recorder:
> New
>
> Bug description:
> Dear all,
>
> My request origins from a discussion on AskUbuntu [1]. Currently,
> Audio Recorder doesn't write to the xbel file upon creation of a new
> file.
>
> This problem could be solved, I think, by a new optional setting to
> ask the user each time where to save the file. It would then write to
> xbel by prompting the GTK File Dialog window.
>
> What do you think of this request?
>
> Would you consider it useful?
>
> Thankfully,
>
> ~Robert
>
>
> [1] https://askubuntu.com/questions/803869/is-there-an-
> indicator-to-quickly-access-recently-used-files/804533?
> noredirect=1#comment1221806_804533
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/audio-recorder/+bug/1610508/+subscriptions
>

--
Sent from my PC, laptop or phone with Ubuntu-Linux.