-h not working from autostart

Bug #405314 reported by Christoph Wickert
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Xpad
Fix Released
Low
Arthur Borsboom

Bug Description

The -h option to hide the notes does not work when xpad is started from autostart.

cp /usr/share/applications/xpad.desktop /etc/xdg/autostart/
sed -i 's!Exec=xpad!Exec=xpad -h!' /etc/xdg/autostart/xpad-autostart.desktop

Even if I use xpad -h -N it opens all notes. Tested in Gnome, Xfe and LXDE. I guess the panel is not yet loaded when xpad starts.

Tags: autostart hide ui

Related branches

Revision history for this message
abondendAccount (hennr) wrote :

same problem with openbox and the xfce panel under debian unstable

Revision history for this message
abondendAccount (hennr) wrote :

The theory with the "not yet loaded panel" seems to be correct.

If I start xpad at login with sleep 10 like this:

sleep 10 && xpad -h

everything works fine.

Revision history for this message
Anton Asche (aasche) wrote :

If a desktop file is used, the correct line should be:

exec=sh -c "sleep 5; xpad --hide --no-new"

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

Hi Christoph and Hennr,

Did the suggested solution of Anton work out for you guys?
If so, are you satisfied with the solution?

Regards,
Arthur Borsboom.

Changed in xpad:
importance: Undecided → Low
Changed in xpad:
milestone: none → 4.3
Changed in xpad:
status: New → Incomplete
Changed in xpad:
assignee: nobody → Arthur Borsboom (arthurborsboom)
Revision history for this message
Arthur Borsboom (arthurborsboom) wrote :

Hi guys,

The above solution seems to work for me too.

To make it easier for less advanced users, I suggest a new feature where you can setin the preferences to autostart Xpad with some options such as Show new pad on startup, Hide pads on startup, etc.

I have created a blueprint with the specifications. Feel free to add or change things.
https://blueprints.launchpad.net/xpad/+spec/xpad-autostart

Changed in xpad:
status: Incomplete → In Progress
Changed in xpad:
status: In Progress → Confirmed
Revision history for this message
Arthur Borsboom (arthurborsboom) wrote :

Problems solved by adding preferences to Xpad 4.3 to work around this issue.

* New: Preferences - Ability to set the automatic start of Xpad in the Preferences menu (#405314)
* New: Preferences - Ability to set the wait for systray option in the Preferences menu (#405314)
* New: Preferences - Ability to delay the start of Xpad in the Preferences menu (#405314)
* New: Preferences - Ability to set the automatic creation of a new pad at the start of Xpad in the Preferences menu
* New: Preferences - Ability to set the automatic open/hide/restore of all pads at the start of Xpad in the Preferences menu (#405314)

Changed in xpad:
status: Confirmed → Fix Committed
tags: added: autostart
tags: added: hide ui
Changed in xpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related blueprints

Remote bug watches

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