Ryan Erwin Posted July 2, 2018 Share Posted July 2, 2018 Question 1: How is synergy on Arch Linux auto-started? Specifically I'm running KDE Plasma Question 2: Can I just edit that file (from question 1) and pass custom environment variables in that auto-start file? Or is there a special procedure? I'm getting the following errors when trying to run synergy... On the horrible network that I'm connected from I have to run a proxy to get almost anywhere on the internet, so I have several proxy variables defined in `~/.zshrc`. If I try to run synergy directly from the KDE Search Bar I get: Running the same thing from the console, I get: % synergy QObject::connect: Cannot connect (null)::error(DNSServiceErrorType) to ZeroconfService::errorHandle(DNSServiceErrorType) ("-f", "--no-tray", "--debug", "INFO", "--name", "RyXPS.local", "--enable-crypto", "-c", "/tmp/Synergy.jEcKEu", "--address", ":24800", "--serial-key", "7B76...........REMOVED.FOR.PRIVACY...") From the command line I'm able to manually override all of the proxy related variables before synergy starts: HTTP_PROXY= HTTP_PROXY= http_proxy= https_proxy= ALL_PROXY= synergy So how do I reconfigure synergy under Arch Linux so that I can disable these variables in the synergy startup? Link to comment Share on other sites More sharing options...
Ryan Erwin Posted July 12, 2018 Author Share Posted July 12, 2018 I was somewhat able to get to the bottom of this.... Quote Question 1: How is synergy on Arch Linux auto-started? Specifically I'm running KDE Plasma Somehow the .desktop file is being executed... /usr/share/applications/synergy.desktop Quote Question 2: Can I just edit that file (from question 1) and pass custom environment variables in that auto-start file? Or is there a special procedure? Copy the system wide synergy.desktop file to ~/.local/share/applications/synergy.desktop From here, you can edit the command line... Note that if you want to change environment variables on this command line, you'll need to prepend "env" to your command line. For mine, I did: Exec=env HTTP_PROXY= HTTP_PROXY= http_proxy= https_proxy= ALL_PROXY= /usr/bin/synergy This seems to get synergy running without the Zeroconf error that was coming up before.... But the actual /usr/bin/synergy GUI still fails to open... Running it from the command line I just get: *** WARNING *** The program 'synergy' uses the Apple Bonjour compatibility layer of Avahi. INSERT *** WARNING *** Please fix your application to use the native API of Avahi! *** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html> *** WARNING *** The program 'synergy' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi. *** WARNING *** Please fix your application to use the native API of Avahi! *** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html> ("-f", "--no-tray", "--debug", "INFO", "--name", "RyXPS.local", "--enable-crypto", "-c", "/tmp/Synergy.okRgyh", "--address", ":24800", "--serial-key", "7B...") Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.