Possible Duplicate:
How do I tell a start up program to start minimized?
I am using Unity and I want Gnote to start minimized. When I start it now its search dialog is shown.
If it matters I am not using the standard setup because I have set Gnote to autostart and I have put Gnote in the panel by doing the following (which I learned from another question):
cd .config/autostart/
cp gnote.desktop gnote.desktop.old
cp /usr/share/applications/gnote.desktop ./
gsettings set com.canonical.Unity.Panel systray-whitelist "$(gsettings get com.canonical.Unity.Panel systray-whitelist | sed -e "s/]$/, 'gnote']/")
Two screenshots to illustrate.
What I want:
What I get now:
UPDATE: I did some looking around and it looks like why it wont minimize to the tray is because it starts before the tray does, so there is no tray for it to minimize to. So I made a script that delays the start of Gnote so the tray has time to start first. sleep 5 && gnote -systray Just put that line is a script file and tell autostart to run that file. "5" is 5 seconds, so you can change it depending on what you need.
Original Post: This is how I got Gnote to start minimized on Fedora. I put a Gnote entry in the autostart and then added
--start-minimized
so it looked like this:but it didn't work. I was confused because it worked when I put that command in the terminal and it worked, but not when I put it in autostart. So I found two other commands to try
-min
and-systray
.-min
did the same thing as--start-minimized
(worked in the terminal but not in autostart) but then I tryed-systray
and it worked! so I put this in autostart and it worked:The reason I posted the other two commands is because I am not sure which one works in Unity or Ubuntu.
By the way, I got the minimize commands from here: How do I tell a start up program to start minimized?