Do not constantly rewrite info-* files

Bug #1459251 reported by Nazar Mokrynskyi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Xpad
Fix Released
Medium
Arthur Borsboom

Bug Description

I have xpad config directory under ownnCloud and realized that this file being constantly rewritten.
Is there any chance to make this behavior sane and update file if only something is changing? Because currently looks like it is updated every X seconds or whatever by timeout repeatedly.

Related branches

Revision history for this message
Arthur Borsboom (arthurborsboom) wrote :

What version of Xpad are you using?

Revision history for this message
Nazar Mokrynskyi (nazar-pc) wrote :

4.5 from Ubuntu 15.10 repository

Revision history for this message
Arthur Borsboom (arthurborsboom) wrote :

Thanks for the input.

A developer needs to analyse this, so this might take some time.

For now, thanks for reporting.
Your issue is on the bug list.

Revision history for this message
Nazar Mokrynskyi (nazar-pc) wrote :

Thanks, feel free to ask me any questions if there will be any need for that.

Revision history for this message
Arthur Borsboom (arthurborsboom) wrote :

Hi Nazar,

Xpad should only save information if text on the pad has changed, or any of the settings/events have changed.
It queues all these changes and auto saves them each 4 seconds.

How did you notice or measure that Xpad doesn't behave like above?

Changed in xpad:
status: New → Incomplete
Revision history for this message
Nazar Mokrynskyi (nazar-pc) wrote :

Each time I switch virtual desktop Xpad rewrites its info files, while certainly nothing related to Xpad was changed.
I've made info file read-only to check this.
How to reproduce: make info file read-only, switch virtual desktop, wait 4 seconds and here you are.

Revision history for this message
Arthur Borsboom (arthurborsboom) wrote :

Confirmed on Ubuntu 15.10 with Xpad 4.5.
Thanks for the explanation

Changed in xpad:
status: Incomplete → Confirmed
importance: Undecided → Medium
Revision history for this message
Arthur Borsboom (arthurborsboom) wrote :

After analysing this behavior, I guess this seems to be by design.

When changing from workspace 1 to workspace 2, Unity moves the pad from location x to location x-900 (for example).
Since Xpad keeps track of the location of each pad, it does save this change. In this way, the next time Xpad starts, it will show the pad on the correct workspace.

The autosave feature of Xpad is quite cool, since this way the chance of losing information is small.
However, autosaving the location of a pad (metadata) is by far not as important as the information in the pad (data).

So, I wil make a design change in favor of performance and choose to only store the location information on disk when shutting down/exiting Xpad. How does that sound?

Changed in xpad:
assignee: nobody → Arthur Borsboom (arthurborsboom)
milestone: none → 4.6
status: Confirmed → Fix Committed
Revision history for this message
Nazar Mokrynskyi (nazar-pc) wrote :

Sounds great, I'll test it as soon as it appears in xenial-proposed.
Thanks for fast response BTW:)

Changed in xpad:
status: Fix Committed → Fix Released
Revision history for this message
Nazar Mokrynskyi (nazar-pc) wrote :

When will this be upstreamed? Still suffering from this on Ubuntu 16.04.

Revision history for this message
Arthur Borsboom (arthurborsboom) wrote : Re: [Bug 1459251] Re: Do not constantly rewrite info-* files

I am not sure. In general I have a hard time getting newer versions of Xpad
into the repositories of Linux distributions (except for Arch).
Maybe you can do an inquiry at Ubuntu or create a bug report (request) for
updating the Xpad in the Ubuntu repositories?

https://bugs.launchpad.net/ubuntu/

Out of curiosity, I would like to know how this progresses...

On 13 December 2015 at 14:32, Nazar Mokrynskyi <email address hidden> wrote:

> When will this be upstreamed? Still suffering from this on Ubuntu 16.04.
>
> --
> You received this bug notification because you are a bug assignee.
> Matching subscriptions: Arthur Borsboom
> https://bugs.launchpad.net/bugs/1459251
>
> Title:
> Do not constantly rewrite info-* files
>
> Status in Xpad:
> Fix Released
>
> Bug description:
> I have xpad config directory under ownnCloud and realized that this file
> being constantly rewritten.
> Is there any chance to make this behavior sane and update file if only
> something is changing? Because currently looks like it is updated every X
> seconds or whatever by timeout repeatedly.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/xpad/+bug/1459251/+subscriptions
>

--
Arthur Borsboom
Mob: +31629089953
Email: <email address hidden>
Skype: Arthur Borsboom, The Hague, The Netherlands

[image: View Arthur's LinkedIn profile]
<http://uk.linkedin.com/in/arthurborsboom>

Revision history for this message
Nazar Mokrynskyi (nazar-pc) wrote :

Here it is: https://bugs.launchpad.net/ubuntu/+source/xpad/+bug/1525656
I'm wondering you're not a maintainer of Ubuntu's xpad package, let's see who will answer (if anyone) there.

Revision history for this message
Arthur Borsboom (arthurborsboom) wrote :

Alright. Let's see what happens... :)

On 13 December 2015 at 15:57, Nazar Mokrynskyi <email address hidden> wrote:

> Here it is: https://bugs.launchpad.net/ubuntu/+source/xpad/+bug/1525656
> I'm wondering you're not a maintainer of Ubuntu's xpad package, let's see
> who will answer (if anyone) there.
>
> --
> You received this bug notification because you are a bug assignee.
> Matching subscriptions: Arthur Borsboom
> https://bugs.launchpad.net/bugs/1459251
>
> Title:
> Do not constantly rewrite info-* files
>
> Status in Xpad:
> Fix Released
>
> Bug description:
> I have xpad config directory under ownnCloud and realized that this file
> being constantly rewritten.
> Is there any chance to make this behavior sane and update file if only
> something is changing? Because currently looks like it is updated every X
> seconds or whatever by timeout repeatedly.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/xpad/+bug/1459251/+subscriptions
>

--
Arthur Borsboom
Mob: +31629089953
Email: <email address hidden>
Skype: Arthur Borsboom, The Hague, The Netherlands

[image: View Arthur's LinkedIn profile]
<http://uk.linkedin.com/in/arthurborsboom>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.