[GH-ISSUE #753] How to change screen name on client side. It does not match my hostname #590

Open
opened 2026-05-05 06:43:54 -06:00 by gitea-mirror · 12 comments
Owner

Originally created by @harogaston on GitHub (Jun 15, 2020).
Original GitHub issue: https://github.com/debauchee/barrier/issues/753

Operating Systems

Server: Manjaro Linux

Client: Manjaro Linux

Barrier Version

2.3.2-2

Steps to reproduce bug

  1. Launch Barrier GUI
  2. Check "Client (use another computer's mouse and keyboard):
  3. Screen name cannot be changed

Other info

  • When did the problem start to occur? When I changed my computer hostname
  • Is there a way to work around it? Yes, I added an alias at the server configuration
  • Does this bug prevent you from using Barrier entirely? No

I changed the hostname on my client machine but barrier keeps displaying the old hostname as "Screen name". I deleted all config files I could find, removed and reinstalled Barrier. It keeps showing the old hostname as Screen name.

Originally created by @harogaston on GitHub (Jun 15, 2020). Original GitHub issue: https://github.com/debauchee/barrier/issues/753 ### Operating Systems ### Server: Manjaro Linux Client: Manjaro Linux ### Barrier Version ### 2.3.2-2 ### Steps to reproduce bug ### 1. Launch Barrier GUI 2. Check "Client (use another computer's mouse and keyboard): 3. Screen name cannot be changed ### Other info ### * When did the problem start to occur? When I changed my computer hostname * Is there a way to work around it? Yes, I added an alias at the server configuration * Does this bug prevent you from using Barrier entirely? No I changed the hostname on my client machine but barrier keeps displaying the old hostname as "Screen name". I deleted all config files I could find, removed and reinstalled Barrier. It keeps showing the old hostname as Screen name.
gitea-mirror added the
bug
label 2026-05-05 06:43:54 -06:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 19, 2020):

This issue has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions.

<!-- gh-comment-id:695146248 --> @github-actions[bot] commented on GitHub (Sep 19, 2020): This issue has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions.
Author
Owner

@p12tic commented on GitHub (Jan 10, 2021):

Let's not close valid bugs for no reason.

<!-- gh-comment-id:757532508 --> @p12tic commented on GitHub (Jan 10, 2021): Let's not close valid bugs for no reason.
Author
Owner

@jefflroberts commented on GitHub (Jan 21, 2021):

I'm having a similar issue on Windows 10. I changed the name of the computer but barrier still shows the old name as screen name.

<!-- gh-comment-id:764724575 --> @jefflroberts commented on GitHub (Jan 21, 2021): I'm having a similar issue on Windows 10. I changed the name of the computer but barrier still shows the old name as screen name.
Author
Owner

@gmonte commented on GitHub (Jan 28, 2021):

@jefflroberts the same here. I tried to reinstall the barrier, but the name has not been updated.

<!-- gh-comment-id:769230041 --> @gmonte commented on GitHub (Jan 28, 2021): @jefflroberts the same here. I tried to reinstall the barrier, but the name has not been updated.
Author
Owner

@jefflroberts commented on GitHub (Jan 28, 2021):

@gmonte I did find a workaround, but this is still a bug. You can click Barrier from the top menu, then click change settings and change the Screen Name field there to whatever you want. I would expect this to be updated when the hostname is updated, or at least reset when the program is removed and reinstalled.

<!-- gh-comment-id:769241465 --> @jefflroberts commented on GitHub (Jan 28, 2021): @gmonte I did find a workaround, but this is still a bug. You can click Barrier from the top menu, then click change settings and change the Screen Name field there to whatever you want. I would expect this to be updated when the hostname is updated, or at least reset when the program is removed and reinstalled.
Author
Owner

@jtara commented on GitHub (Mar 31, 2021):

I have the same problem. You edit the screen name, it changes on the Settings page, but it still uses the old screen name.

<!-- gh-comment-id:811245374 --> @jtara commented on GitHub (Mar 31, 2021): I have the same problem. You edit the screen name, it changes on the Settings page, but it still uses the old screen name.
Author
Owner

@kurtisnelson commented on GitHub (Jul 22, 2021):

I'm reproing this on OS X, even after removing and reinstalling barrier.

<!-- gh-comment-id:885165977 --> @kurtisnelson commented on GitHub (Jul 22, 2021): I'm reproing this on OS X, even after removing and reinstalling barrier.
Author
Owner

@kurtisnelson commented on GitHub (Jul 22, 2021):

On OS X, the trick is to rm /Users/YOU/Library/Preferences/com.github.Barrier.plist.

<!-- gh-comment-id:885211316 --> @kurtisnelson commented on GitHub (Jul 22, 2021): On OS X, the trick is to `rm` `/Users/YOU/Library/Preferences/com.github.Barrier.plist`.
Author
Owner

@subins2000 commented on GitHub (Jul 23, 2021):

I tried removing the config file but the hostname is still not changed. This might be a Qt bug. I checked the source code and the function used is QHostInfo::localHostName() fc045fc793/src/gui/src/AppConfig.cpp (L142)

I also tried changing the name by directly editing the config file (/Users/YOU/Library/Preferences/com.github.Barrier.plist) but that didn't work too.

PS: I'm on M1 running Barrier under Rosetta

<!-- gh-comment-id:885581543 --> @subins2000 commented on GitHub (Jul 23, 2021): I tried removing the config file but the hostname is still not changed. This might be a Qt bug. I checked the source code and the function used is `QHostInfo::localHostName()` https://github.com/debauchee/barrier/blob/fc045fc79326cef966405b1cc578e8f062ae5294/src/gui/src/AppConfig.cpp#L142 I also tried changing the name by directly editing the config file (`/Users/YOU/Library/Preferences/com.github.Barrier.plist`) but that didn't work too. PS: I'm on M1 running Barrier under Rosetta
Author
Owner

@BrandonYeager commented on GitHub (Jul 30, 2021):

I was able to get the new name to take effect by rebooting my MacBook after removing the /Users/<username>/Library/Preferences/com.github.Barrier.plist file.

<!-- gh-comment-id:890047099 --> @BrandonYeager commented on GitHub (Jul 30, 2021): I was able to get the new name to take effect by rebooting my MacBook after removing the `/Users/<username>/Library/Preferences/com.github.Barrier.plist` file.
Author
Owner

@lucnux commented on GitHub (Jan 19, 2023):

what fixed the issue for me was changing the CLIENT hostname manually via config file.

I had changed my hostname after installing barrier and the CLIENT hostname was still the old one, even though i was running barrier as a SERVER from the machine.

check if the configuration still shows the old hostname as a client, if so, change to the new name.

my config file was in ~/.config/Debauchee/Barrier.conf

restart barrier :)

<!-- gh-comment-id:1396612702 --> @lucnux commented on GitHub (Jan 19, 2023): what fixed the issue for me was changing the CLIENT hostname manually via config file. I had changed my hostname after installing barrier and the CLIENT hostname was still the old one, even though i was running barrier as a SERVER from the machine. check if the configuration still shows the old hostname as a client, if so, change to the new name. my config file was in ~/.config/Debauchee/Barrier.conf restart barrier :)
Author
Owner

@ingobaab commented on GitHub (Aug 19, 2023):

For me (on Manjaro Linux) also: After deleting "~/.config/Debauchee/Barrier.conf" and restarting "barrier" it starts with the "setup wizard again". Seems that a hostname is stored in the config file - not very good.. Hope that helps anyone. just
mv ~/.config/Debauchee/Barrier.conf /tmp and restart Barrier - good luck.

<!-- gh-comment-id:1684918866 --> @ingobaab commented on GitHub (Aug 19, 2023): For me (on Manjaro Linux) also: After deleting "~/.config/Debauchee/Barrier.conf" and restarting "barrier" it starts with the "setup wizard again". Seems that a hostname is stored in the config file - not very good.. Hope that helps anyone. just `mv ~/.config/Debauchee/Barrier.conf /tmp` and restart Barrier - good luck.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#590
No description provided.