Re: Need help starting an application when X starts
Jon Turney via Cygwin <[email protected]>
| Newsgroups | gmane.os.cygwin |
|---|---|
| Message-ID | <[email protected]> |
On 08/12/2025 14:49, Jim Reisert AD1C via Cygwin wrote: > I'm having trouble locating the correct file to create/modify that > will automatically start an X application when the Cygwin X server > starts. > > Here is how I start the X server: > > D:\Cygwin\bin\run.exe --quote /usr/bin/bash.exe -l -c "cd; exec > /usr/bin/startxwin" > > ~/.xserverrc contains this: > > exec /usr/bin/XWin -notrayicon -noclipboard "$@" > > I've tried putting the command in ~/.xsession, but it doesn't start: > > /usr/bin/xwinclip >& /dev/null & > If you use the "User .xsession script" shortcut, that ends up running your ~/.xsession. Note that the server will exit once that script does! (so end it with 'sleep infinity' if you don't want that to happen) > I've tried copying the default .xinitrc to ~/.xinitrc and adding the > command at the end, but that doesn't work either. > > What am I doing wrong? 'man startxwin' says that the applicable files in this case are /etc/X11/xinit/startxwinrc and ~/.startxwinrc. Not sure if there's a good way to add customizations into that. But a ~/.startxwinrc which does: custom-command-i-want & exec /usr/bin/xwin-xdg-menu should get you most of the way there... -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple