Notes disappear after "show desktop"

Bug #1105948 reported by Timo Schneemann
80
This bug affects 13 people
Affects Status Importance Assigned to Milestone
indicator-stickynotes
Fix Released
Medium
Umang Varma

Bug Description

1. Open stickynotes with some notes
2. Choose 'show desktop' with alt+tab-switcher
= notes are gone
3. Hit "show all" notes in stickynotes menu
= notes don't show up

Only way to get the notes back seems to be restarting the program.

(Ubuntu 12.10)

Revision history for this message
Umang Varma (umang) wrote :

Good catch. Thanks for reporting this issue. I'm going to try to fix this. Meanwhile, here's a quick piece of information:

The way Show Desktop works is that you can choose 'Show Desktop' again and all your previous windows are restored. So you don't have to restart Indicator Stickynotes. Just select 'Show Desktop' once more.

Changed in indicator-stickynotes:
assignee: nobody → Umang Varma (umang)
importance: Undecided → Medium
milestone: none → 0.4.1
status: New → Triaged
Revision history for this message
Timo Schneemann (timobauwan) wrote :

Thank you for the hint and thanks for your great work and the program! I will use it anyway! ;)

Revision history for this message
Umang Varma (umang) wrote :

I haven't found a simple solution yet, but I'm working on it.

Changed in indicator-stickynotes:
milestone: 0.4.1 → none
Revision history for this message
Hughes (h-jg) wrote :

Hi,

Happy to learn that this glitch as been reported, the only flaw in a perfect yet simple app (keep it simple ;)
Yes, I'd love my sticky notes to remain sticky!

Nice job and thank you!!

Revision history for this message
Ondrej (charnger) wrote :

Hi,

I debugged this a little, because the show desktop doesn't seem to work... middle click on the tray icon doesn't toggle the notes anymore, they just stay hidden. Only way is to restart the app:/ The middle click does make it to the handler, though:

 def connect_secondary_activate(self):
        """Define action of secondary action (middle click) depending
        on visibility state of notes."""
        print('middle click! %s', self.nset.properties["all_visible"]) ### SEE HERE
        if self.nset.properties["all_visible"] == True:
            self.ind.set_secondary_activate_target(self.mHideAll)
        else:
            self.ind.set_secondary_activate_target(self.mShowAll)

The added line reports clicks alright, and the property is indeed toggled. Just no notes are to be seen. Maybe one could just destroy and re-create the windows from scratch every time? It's a dirty hack, but would at least work for now - this occurs quite often for me. I have no knowledge if inner workings of the gui lib, but maybe with a few pointers, I could try to hack it myself .. :)

Revision history for this message
Umang Varma (umang) wrote :

Hi Ondrej,

You are exactly right. My attempts at finding a fix led me to the same conclusion, and I haven't had been able to find a more elegant solution yet.

If you are interested on working on this and could post your changes to a branch on github, that would be great. Since this is a workaround minimal and easily-revertible changes would be ideal.

Thanks,

Umang

Changed in indicator-stickynotes:
assignee: Umang Varma (umang) → nobody
Revision history for this message
Edson T. Marques (edsontmarques) wrote :

Hi,

This case looks like what I have here. I work with multiple desktops, throughout the day I open and close these work areas several times with multiple applications that I use. I noticed that the notes are displayed normally on all desktops until the end of the day when I unplug the computer, however, the next day when I turn on the computer again no notes appears on the screen ... When I access /home/<user>/.config/indicator-stickynotes, I see that all the texts are written there, but I click "Show All" in tray indicator menu and nothing happens.

Regards,

Edson

Revision history for this message
Umang Varma (umang) wrote :

Hi Edson,

Try clicking "Show Desktop" and see if the notes appear again. I don't have the time to fix this problem right now, unfortunately.

Umang

Revision history for this message
Ondrej (charnger) wrote : Re: [Bug 1105948] Re: Notes disappear after "show desktop"

I ended up setting up a hotkey that just kills and restarts the notes ->
that "fixes" notes not reappearing.

On Thu, Oct 31, 2013 at 4:57 PM, Umang Varma <email address hidden> wrote:

> Hi Edson,
>
> Try clicking "Show Desktop" and see if the notes appear again. I don't
> have the time to fix this problem right now, unfortunately.
>
> Umang
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1105948
>
> Title:
> Notes disappear after "show desktop"
>
> Status in Indicator Stickynotes:
> Triaged
>
> Bug description:
> 1. Open stickynotes with some notes
> 2. Choose 'show desktop' with alt+tab-switcher
> = notes are gone
> 3. Hit "show all" notes in stickynotes menu
> = notes don't show up
>
> Only way to get the notes back seems to be restarting the program.
>
> (Ubuntu 12.10)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/indicator-stickynotes/+bug/1105948/+subscriptions
>

Revision history for this message
Florin Trifu (florin-catalin-trifu) wrote :

Hi!

I'm using indicator-stickynotes v 0.4.4 and I don't know what the hotkey for restarting notes is nor I could find it in "About" section.
Can you please help me?

One more thing, is this going to ever be repaired?

Thank you!

Best regards!

Revision history for this message
Ondrej (charnger) wrote :

I created a script for it and assigned hotkey for that script. Sorry I
don't have on the current computer: just use a bash script that killall's
sticky notes and starts them again.

No idea about the proper fix.

On Tue, Aug 26, 2014 at 12:42 PM, Florin Trifu <
<email address hidden>> wrote:

> Hi!
>
> I'm using indicator-stickynotes v 0.4.4 and I don't know what the hotkey
> for restarting notes is nor I could find it in "About" section.
> Can you please help me?
>
> One more thing, is this going to ever be repaired?
>
> Thank you!
>
> Best regards!
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1105948
>
> Title:
> Notes disappear after "show desktop"
>
> Status in Indicator Stickynotes:
> Triaged
>
> Bug description:
> 1. Open stickynotes with some notes
> 2. Choose 'show desktop' with alt+tab-switcher
> = notes are gone
> 3. Hit "show all" notes in stickynotes menu
> = notes don't show up
>
> Only way to get the notes back seems to be restarting the program.
>
> (Ubuntu 12.10)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/indicator-stickynotes/+bug/1105948/+subscriptions
>

Revision history for this message
Bram Kuijper (terabyte) wrote :

Attached a modified stickynotes/gui.py file with a workaround to prevent notes from disappearing after a “Show Desktop” event.

In this file, I modified the show() function which previously caused a sticky note to reappear, which it did by calling the Gtk.widget.present() function. The problem is that this present() function does not work for notes after a “Show Desktop” event, because of a 'skip_taskbar_hint' property that is set to 'True' in StickyNotes.glade. Setting that property to False is not desirable: while it causes present() to show sticky notes again, even after a “Show Desktop” event, sticky notes now also appear in the taskbar or in the task switcher.

As an alternative, I removed the present() function altogether. Instead, all the properties of a sticky note are stored after which the note is destroyed and recreated, causing them to reappear after a "Show Desktop" event, while not requiring a hotkey.

Revision history for this message
Bram Kuijper (terabyte) wrote :

And here the patch file itself.

Revision history for this message
Umang Varma (umang) wrote :

HI Bram,

Thanks so much for looking into this. While I was hoping to take that route, I am willing to accept that it is the only way to fix this until a better solution (one that doesn't involve restarting the gui) is found. I will look into your patch in the coming weeks. I am sorry I'm so busy.

Thanks again. I will let you know when I've had a chance to look at this.

Umang

Revision history for this message
Devon (devon-s-fritz) wrote :

This is still an issue unfortunately. For me it makes the software unusable, as I am always showing desktop. Any chance this will be fixed at some point?

I don't mean to be all negative - great job developing the software - it is much appreciated!

Revision history for this message
Devon (devon-s-fritz) wrote :

I should mention the gui.py file didn't work for me.

Revision history for this message
Umang Varma (umang) wrote :

The patch provided required one more small change. This bug is now fixed in 0.4.5 (ppa version will be available in a few hours).

Thank you Bram Kuijper for your patch!

Changed in indicator-stickynotes:
assignee: nobody → Umang Varma (umang)
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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