Comments (9)
It looks like their is a race condition between the unity systray and copyq. As there aren't more sophisticated solutions to start programs a 3 seconds delay or so might help:
sh -c "sleep 3; copyq"
from copyq.
Add apps to run automatically at startup in Windows 10
To add an app to Startup:
- Select the Start Windows logo Start button button and scroll to find the app you want to run at startup.
- Right-click the app, select More, and then select Open file location. This opens the location where the shortcut to the app is saved. If there isn’t an option for Open file location, it means the app can’t run at startup.
- With the file location open, press the Windows logo key Windows logo Start button + R, type shell:startup, then select OK. This opens the Startup folder.
- Copy and paste the shortcut to the app from the file location to the Startup folder.
Even if there's no "open file location" one can try to find it with: Win+R and then opening: Shell:AppsFolder and making a shortcut on desktop and copying it to shell:startup folder.
from copyq.
(let me know if I should open a separate issue for this Ubuntu-specific problem)
On Ubuntu (13.04), I added CopyQ as a startup application by going to "Startup Applications" and adding "copyq" as the command to run. For the most part this works perfectly, but about 1 out of 5 times, CopyQ does not start. To investigate this, I moved /usr/local/bin/copyq
to /usr/local/bin/copyq_ORIG
and saved the following script as /usr/local/bin/copyq
:
#!/bin/bash
exec > "/home/scott/copyq.log"
exec 2>> "/home/scott/copyq.log"
date
/usr/local/bin/copyq_ORIG "$@"
Here is the output when I start copyq from the command line after the computer is started. CopyQ starts and works fine.
CopyQ: Loading configuration
CopyQ: Loading plugin: /usr/local/lib/copyq/plugins/libitemdata.so
CopyQ: Loading plugin: /usr/local/lib/copyq/plugins/libitemimage.so
CopyQ: Loading plugin: /usr/local/lib/copyq/plugins/libitemtext.so
CopyQ: Loading plugin: /usr/local/lib/copyq/plugins/libitemweb.so
CopyQ: Configuration loaded
CopyQ: Clipboard Monitor: Starting
CopyQ: Clipboard Monitor: Started
Here is the output from my log after CopyQ a successful automatic start:
CopyQ: Loading configuration
CopyQ: Loading plugin: /usr/local/lib/copyq/plugins/libitemdata.so
CopyQ: Loading plugin: /usr/local/lib/copyq/plugins/libitemimage.so
CopyQ: Loading plugin: /usr/local/lib/copyq/plugins/libitemtext.so
CopyQ: Loading plugin: /usr/local/lib/copyq/plugins/libitemweb.so
CopyQ: Configuration loaded
"sni-qt/2129" WARN 21:50:31.826 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE
No systemtrayicon available
CopyQ: Clipboard Monitor: Starting
CopyQ: Clipboard Monitor: Started
Here is the output from my log after CopyQ an unsuccessful automatic start:
CopyQ: Loading configuration
CopyQ: Loading plugin: /usr/local/lib/copyq/plugins/libitemdata.so
CopyQ: Loading plugin: /usr/local/lib/copyq/plugins/libitemimage.so
CopyQ: Loading plugin: /usr/local/lib/copyq/plugins/libitemtext.so
CopyQ: Loading plugin: /usr/local/lib/copyq/plugins/libitemweb.so
CopyQ: Configuration loaded
"sni-qt/2128" WARN 21:59:39.663 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE
No systemtrayicon available
CopyQ: Clipboard Monitor: Starting
CopyQ: Clipboard Monitor: Started
CopyQ ERROR: Remote process: Failed to start new remote process!
CopyQ ERROR: Cannot start clipboard monitor!
CopyQ ERROR: Remote process: Close connection unsucessful!
CopyQ: Clipboard Monitor:
CopyQ ERROR: Clipboard monitor crashed!
CopyQ: Clipboard Monitor: Terminating
CopyQ: Clipboard Monitor: Terminated
CopyQ: Clipboard Monitor: Starting
CopyQ: Clipboard Monitor: Started
Is the solution to have copyq check for the processes it depends on and if those aren't started sleep for a second or two and try again (and then give up after, say, 5 tries)?
Let me know if there's any other testing I can do to help.
from copyq.
The interval may help but I guess sni-qt
should create indicator icon in panel as soon as it's available, otherwise it's a bug on their side.
I wonder what else is happening because the "CopyQ ERROR" messages must be unrelated to the previous. Is that v1.8.3 or version from git?
For more verbose output you can build CopyQ in debug version with cmake -DCMAKE_BUILD_TYPE=Debug .
.
It'll be better to create other issue labeled as "bug".
from copyq.
It was a git checkout of b7d5f02
. I will create another issue with output from the debug build and from current HEAD
.
from copyq.
Implemented for Linux/X11: fdcc0c6
from copyq.
If anyone need this option on Windows and know how to implement it, there are *Autostart*
methods in src/platform/winplatform.*
that need implementing. Note that it's possible to put copyq link to Startup folder using the installer for Windows.
from copyq.
For windows, add a new string value in the following location and specify the path to copyq.exe
Path: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
Value name: CopyQ
Value data: "C:\Program Files (x86)\CopyQ\copyq.exe"
Value data may vary depending on the specified installation location._
Here is a oneliner to run in CMD:
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" /v CopyQ /t REG_SZ /d "C:\Program Files (x86)\CopyQ\copyq.exe"
from copyq.
Add apps to run automatically at startup in Windows 10
To add an app to Startup:
- Select the Start Windows logo Start button button and scroll to find the app you want to run at startup.
- Right-click the app, select More, and then select Open file location. This opens the location where the shortcut to the app is saved. If there isn’t an option for Open file location, it means the app can’t run at startup.
- With the file location open, press the Windows logo key Windows logo Start button + R, type shell:startup, then select OK. This opens the Startup folder.
- Copy and paste the shortcut to the app from the file location to the Startup folder.
from copyq.
Related Issues (20)
- capslock...Q? HOT 2
- Warn when close to the item limit in current tab
- Automatically abandon the F7 preview after each close
- Clicking on an item in the drop-down list pastes to emacs window automatically instead of previous active window
- Suddenly found that all copied images only display links instead of thumbnails.
- is ctrl+D a Shortcut I don't see it listed in the software preferences HOT 2
- No clipboard items visible
- Open under mouse, but CLI HOT 1
- Having Trouble Creating Global Shortcut to Copy and Paste Previous Item in Clipboard
- CopyQ Not Remembering Window Size Across Multiple Monitors HOT 1
- Encrypt clipboard items database (%APPDATA%\copyq\copyq_tab_XYZ.dat)
- Is there a way to start copyQ minimize to tray direct ? HOT 1
- Different color tag text
- Paste by number not working for last item
- Esc, click out side the copyq window and <copyq toggle> command can't hide completely the copyq window in Fedora 39
- Fail to paste into Blender
- [Feature Request]:Please add a feature option: allow the same item to exist
- CopyQ 7.1.0 on the Mac mini M2, When copying, error pops up: Exception in command: ScriptError: ReferenceError: zwlZ is not defined HOT 4
- Hard-to-read text on clipboard HOT 1
- "Paste Mouse Selection with Keyboard" logistical problem HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from copyq.