Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

3 votes
1 answers
2851 views
Preventing other GUI applications from stealing focus?
How can I prevent other applications from stealing focus from the active window? I have found solutions for other window managers, but nothing for "Metacity (Marco)" (the window manager of the MATE desktop manager). I don't want to have to specify every time which window must be "always on top", unl...
How can I prevent other applications from stealing focus from the active window? I have found solutions for other window managers, but nothing for "Metacity (Marco)" (the window manager of the MATE desktop manager). I don't want to have to specify every time which window must be "always on top", unless it can be done automatically every time I switch to a new window. I have determined the window manager by running wmctrl -m. EDIT: I have tried switching the focus-new-windows flag from smart to strict for both Gnome and Mate(Marco): $ gsettings set org.gnome.desktop.wm.preferences focus-new-windows strict $ gsettings set org.mate.Marco.general focus-new-windows strict But it didn't work.
Eleno (1859 rep)
Feb 9, 2016, 02:28 PM • Last activity: Jul 28, 2025, 11:08 PM
1 votes
1 answers
2269 views
Ubuntu Unity randomly crashes, and then the command 'unity' isn't recognized
For the last bit, unity (and perhaps other things?) would crash after something like 20-30 minutes of use. First my launchbar would disappear, all of the upper right hand icons disappear and then all my programs freeze. If I press my power button, the login/shutdown/restart screen shows up but all t...
For the last bit, unity (and perhaps other things?) would crash after something like 20-30 minutes of use. First my launchbar would disappear, all of the upper right hand icons disappear and then all my programs freeze. If I press my power button, the login/shutdown/restart screen shows up but all the text is squares. Then the entire GUI freezes. If I manage to open up a terminal before everything stops and I type in 'unity', it says that the command isn't recognised. Any suggestions or help would be greatly appreciated. Thanks!
algebroic (11 rep)
May 6, 2017, 06:01 PM • Last activity: Jul 15, 2025, 07:01 AM
1 votes
1 answers
114 views
GTK apps UIs look broken in Debian
What is the problem and how to fix it? `gdmap` looks like this: [![screenshot of gdmap][1]][1] I think it has to do with GTK. I'm using Debian 12 with KDE and Wayland. On a nearly identical machine gdmap looks fine. I have libgtk-3-0 and libgtk-4-1 installed and when I enter `sudo apt-get install gd...
What is the problem and how to fix it? gdmap looks like this: screenshot of gdmap I think it has to do with GTK. I'm using Debian 12 with KDE and Wayland. On a nearly identical machine gdmap looks fine. I have libgtk-3-0 and libgtk-4-1 installed and when I enter sudo apt-get install gdmap nothing is asked to be installed and I already tried reinstalling. Other apps like Firefox and Lutris look normal. It's not only gdmap but also other apps, namely VeraCrypt which I installed locally and GParted. The icons can't be seen. LibreOffice is also broken and looks like very old software.
mYnDstrEAm (4708 rep)
Nov 22, 2024, 12:15 PM • Last activity: Jul 13, 2025, 05:41 PM
-1 votes
1 answers
40 views
No GUI and no networking after issues with login loop on Debian in a VM
I am using Debian 12 in a VMWare vm. I wanted to test an application that, after installation, didn’t start and reported libgtk-4 missing. So I did a search via ```apt for libgtk-4``` with no results. Afterwards I executed ```apt install libgtk-*``` which installed a huge load of packages. After a r...
I am using Debian 12 in a VMWare vm. I wanted to test an application that, after installation, didn’t start and reported libgtk-4 missing. So I did a search via
for libgtk-4
with no results. Afterwards I executed
install libgtk-*
which installed a huge load of packages. After a restart I could no longer log in. It stuck in a loop after providing the credentials. A black screen appeared for a second and the login form re-appeared. I could manage to get in via terminal, confirming the credentials are correct. To revert the previous installation of libgtk-* I executed
remove libgtk-*
. This dropped a huge load of packages. Now there is no GUI available. I tried to fix that following this the solution in [this topic](https://unix.stackexchange.com/questions/597818/debian-does-not-start-with-a-graphical-interface#597894) , but it fails due to no network connection available anymore. Now I don’t know how to fix my broken installation with no network available. What can I do to get the networking and gui back so that I can log in again without reinstalling the whole thing?
user56062 (101 rep)
Jul 3, 2025, 12:16 PM • Last activity: Jul 3, 2025, 01:53 PM
1 votes
0 answers
31 views
How to set which tty to run GUI in?
I have set up a runit service to autologin in `/dev/tty16` and the shell profile executes `dbus-run-session Hyprland`, however, I noticed that Hyprland, or GUIs start on the 'active' or the currently shown tty. How can I specify what tty to use a GUI application in?
I have set up a runit service to autologin in /dev/tty16 and the shell profile executes dbus-run-session Hyprland, however, I noticed that Hyprland, or GUIs start on the 'active' or the currently shown tty. How can I specify what tty to use a GUI application in?
Caesar (25 rep)
Jun 29, 2025, 08:10 PM
0 votes
0 answers
2039 views
Plugin "null" could not be loaded, do you want to remove it from xfce4-panel configuration?
I have nethunter android tablet. I set up the local Kex server, when i start the `KEX` client I get this error: > **Plugin "null" could not be loaded, do you want to remove it from xfce4-panel configuration?** > > this plugin is in the current xfce4-panel configuration but could not > be loaded, pro...
I have nethunter android tablet. I set up the local Kex server, when i start the KEX client I get this error: > **Plugin "null" could not be loaded, do you want to remove it from xfce4-panel configuration?** > > this plugin is in the current xfce4-panel configuration but could not > be loaded, probably due to an installation issue. enter image description here I run those commands sudo apt install --reinstall xfce4-panel sudo apt install xfce4-goodies but the error still persists. Whereever I click on the screen opens the start menu
Yilmaz (417 rep)
Jan 2, 2025, 12:42 AM • Last activity: Jun 19, 2025, 02:24 AM
0 votes
0 answers
108 views
Arch Linux - Unable to mount Windows NTFS Partition using GUI
My PC is running a dual-boot setup. I have two NVMe Drives, running Windows 10 and Arch Linux respectively. I first installed Windows, then Arch. My bootloader is GRUB and is able to boot to both OSs. Both systems function normally. As can be seen from the command ```lsblk```, ```nvme0n1``` contains...
My PC is running a dual-boot setup. I have two NVMe Drives, running Windows 10 and Arch Linux respectively. I first installed Windows, then Arch. My bootloader is GRUB and is able to boot to both OSs. Both systems function normally. As can be seen from the command
,
contains Arch while
contains Windows, where the NTFS partition lies in
.
> sudo lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
nvme0n1     259:0    0  7.3T  0 disk 
├─nvme0n1p1 259:1    0    8G  0 part /efi
└─nvme0n1p2 259:2    0  7.3T  0 part /
nvme1n1     259:3    0  1.9T  0 disk 
├─nvme1n1p1 259:4    0  100M  0 part 
├─nvme1n1p2 259:5    0   16M  0 part 
├─nvme1n1p3 259:6    0  1.9T  0 part 
└─nvme1n1p4 259:7    0  642M  0 part
The NTFS partition is clearly recognized both in GNOME Disks and Nautilus. However attempts to mount it fail. When I try to mount using both GUIs, I get
mounting /dev/nvme1n1p3 at /run/media/linux/(UUID): wrong fs type, bad option, bad superblock on /dev/nvme1n1p3, missing codepage or helper program, or other error (udisks-error-quark, 0)
. However manual mounts work.
> sudo mount --mkdir /dev/nvme1n1p3 /run/media/linux/(UUID)
The command is executed successfully, and I can now access the NTFS partition on the GUI too. It is a minor inconvenience to have to manually mount the drive, and I am curious why the GUI fails even though basically the same command on CLI succeeds.
Hyunbin Yoo (175 rep)
May 30, 2025, 07:03 PM • Last activity: May 30, 2025, 07:12 PM
4 votes
1 answers
2936 views
How to get a 'compact' look in GTK?
I am not a fan of the newer “touch screen” looks that GTK has these days. I appreciate what the GTK devs are doing (and to be honest, they look great!) But, I am not on a tablet, I am on a laptop and my pointing device is very precise. I use a mouse, not my finger. Even though large toolbars with hu...
I am not a fan of the newer “touch screen” looks that GTK has these days. I appreciate what the GTK devs are doing (and to be honest, they look great!) But, I am not on a tablet, I am on a laptop and my pointing device is very precise. I use a mouse, not my finger. Even though large toolbars with huge icons are great with touch devices, but they are not that great with laptops that has a mouse. I want to see more on a screen, not less. I also hate newer trends of having less information density on the screen. To avoid that I switched from GNOME 3 to GNOME 2 Mate. It works but a lot of GTK applications are still so bad. Here are some examples, enter image description here On the left is what I want, but on the right is what I have on my MATE desktop. **Spacing:** (on left) _Menu, Applications_ are so close together without wasting any space. (on right) _Mouse Orientation, Locate Pointer, Pointer Speed_ have unnecessary space between them. **Spacing within sections:** (on left) Inside _Applications_ section, all the check-boxes and their options are on spot on. (on right) Inside the _Mouse Orientation_, the _Right-handed_ and _Left-handed_ radio buttons have too much space in between. **Sliders:** The sliders in the left is small but on the right they are too big. In fact it looks like they have been resize and hence the blurriness. enter image description here The menubar and toolbar have too much padding on the top and bottom in the right (my MATE desktop) than on the left. Forget the icon labels, the icons are too big for me (on the right). Also the tabs _Untitled Document 1_ (on right) are much bigger than _Downloads_ (on left). enter image description here And same with the drop downs menus. The menu on my MATE desktop are padded too much at the top and bottom than the bottom one. enter image description here. And also buttons. The buttons are huge. Why the unnecessary space? The smaller buttons below are much better than the one on the top. enter image description here Again, I get it, that touch screen devices need bigger buttons and imperfect pointing methods are the reason why they are so big. And I have no problem with that. But these modern trends of making everything big is so bad for laptops. I have tried many different themes to make it smaller and this is the most compact one I could get. There are theme that make these UI elements so freaking big (Adwita or something like that). Ironically, (with some quirks here and there) Kirta and Inkscape guys did the UI much better than GNOME and GIMP. I though GIMP would be better since they created the toolkit. Anyways, is there any way of making these compact so that I can have a lot of buttons/sliders/dropdows/other UI elements and windows on my screen when I am working. I don't care about the aesthetics. I want functionality. Does anyone know how to make make as close as the ones I showed in my examples.
sigsegv (169 rep)
Dec 17, 2018, 05:32 PM • Last activity: May 16, 2025, 08:08 AM
1 votes
2 answers
3009 views
Centos installed, switch to gui, no internet connection
I've installed CentOS 7 on a Dell PowerEdge R320. I did the minimal install and its starting up at the command line. Is there anyway to switch to the regular gui without reinstalling or a internet connection. I could load a file to a usb stick and go from there... Or would a complete re install be f...
I've installed CentOS 7 on a Dell PowerEdge R320. I did the minimal install and its starting up at the command line. Is there anyway to switch to the regular gui without reinstalling or a internet connection. I could load a file to a usb stick and go from there... Or would a complete re install be faster?
Robert (11 rep)
Feb 9, 2016, 06:16 PM • Last activity: May 11, 2025, 12:02 AM
0 votes
1 answers
3452 views
How can I add a permenant Samba mount with a GUI?
I would like to be able to add a permanent Samba mount with a GUI interface rather than editing fstab, similar to how I would use ```Map Network Drive``` on Windows. My searches have led to suggestions of ```gnome-disk-utility``` and ```KDE Partition Manager```, however neither appear to have an opt...
I would like to be able to add a permanent Samba mount with a GUI interface rather than editing fstab, similar to how I would use
Network Drive
on Windows. My searches have led to suggestions of
-disk-utility
and
Partition Manager
, however neither appear to have an option to add a Samba mount, only work with local physical drives. I am currently using Manjaro KDE version, however ideally the solution would be available in any distro and desktop environment.
Merritt (251 rep)
Oct 27, 2019, 03:22 PM • Last activity: May 9, 2025, 06:06 AM
0 votes
1 answers
822 views
Not able to acces ubuntu graphical interface just the terminal
For some reason I started facing this error and I am not able to login in my pc any longer, I am just seeing the terminal, I can just login in the terminal every time I turn on my pc. [![enter image description here][1]][1] I followed this tutorial: https://unix.stackexchange.com/questions/616001/ca...
For some reason I started facing this error and I am not able to login in my pc any longer, I am just seeing the terminal, I can just login in the terminal every time I turn on my pc. enter image description here I followed this tutorial: https://unix.stackexchange.com/questions/616001/cant-access-to-ubuntu-interface-when-i-open-ubuntu-just-terminal-inteface but I got with sudo apt-get update: enter image description here Not sure what I have to do, because I am not able to reinstall ubuntu neiher just seeing the terminal forever. Any ideas? Thanks!
rasilvap (101 rep)
Feb 1, 2023, 08:53 PM • Last activity: May 4, 2025, 03:00 PM
2 votes
1 answers
203 views
How to automatically start a GUI application when plugging in a USB device?
I want to automatically start a GUI application, whenever I plug in a certain USB device. When started, the application runs in the foreground and should not run as root. How can I do that? In my specific case, I want to run [Yubico Authenticator](https://www.yubico.com/products/yubico-authenticator...
I want to automatically start a GUI application, whenever I plug in a certain USB device. When started, the application runs in the foreground and should not run as root. How can I do that? In my specific case, I want to run [Yubico Authenticator](https://www.yubico.com/products/yubico-authenticator/) whenever I plug in my Yubikey USB FIDO2/TOTP hardware token.
luziferius (87 rep)
Feb 11, 2025, 02:39 PM • Last activity: May 2, 2025, 08:09 AM
3 votes
2 answers
2031 views
Alsa mixer for assigning specific apps to a specific soundcard?
I am looking for a Alsa mixer GUI for Xfce (or better yet, desktop-independent) to replace PulseAudio Mixer. While I'm happy with the latter, my USB DAC is very poorly handled by PulseAudio and I need to remove it. In the Alsa-based mixer I am looking specifically for the ability to: * detect plugge...
I am looking for a Alsa mixer GUI for Xfce (or better yet, desktop-independent) to replace PulseAudio Mixer. While I'm happy with the latter, my USB DAC is very poorly handled by PulseAudio and I need to remove it. In the Alsa-based mixer I am looking specifically for the ability to: * detect plugged-in USB DACs * set default playback device for new programs (e.g. to USB DAC) * (optional) transparently change running programs currently outputting sound from one playback device to another (e.g. from integrated HDA PCH to USB DAC) So is there a pavucontrol-like Alsa mixer out there?
landroni (11586 rep)
Jul 19, 2015, 05:41 AM • Last activity: Apr 17, 2025, 06:02 AM
0 votes
1 answers
59 views
Is there a graphical tool that gives the details of a sound file?
I want to check the details such as sample rate and bit depth of a sound file. The things that on a Windows system are shown as "properties". I could also see this information in the player Windows used to play the file. In Linux Mint, I can do neither of these. How can I check these details without...
I want to check the details such as sample rate and bit depth of a sound file. The things that on a Windows system are shown as "properties". I could also see this information in the player Windows used to play the file. In Linux Mint, I can do neither of these. How can I check these details without typing stuff into the terminal? enter image description here I am running Linux Mint and it seems the default player is Celluloid. Edit: I installed VLC and it has this info in: Tools->Codec Information
Zebrafish (101 rep)
Apr 13, 2025, 06:04 PM • Last activity: Apr 13, 2025, 07:01 PM
1 votes
1 answers
90 views
Bash script on macOS: prevent next command from running until GUI app exits
I'm trying to write a simple shell script for OS X 10.10, to install a list of applications for new Macs we're getting in. I just want to fire off each installer one at a time to install each application. I'm using a bash script, which works fine, except for some installs I'm just calling the GUI in...
I'm trying to write a simple shell script for OS X 10.10, to install a list of applications for new Macs we're getting in. I just want to fire off each installer one at a time to install each application. I'm using a bash script, which works fine, except for some installs I'm just calling the GUI installer and installing that way clicking Next, Next Next... because that particular app didn't install properly through the terminal. (which is fine) My problem is, that when the script opens the GUI installer for App A, it will then keep running down the script opening the commands next in line. What I want is for the script to wait to run the next command for as long as that installer window is open for. Windows DOS works this way, where you can make a batch file and it won't execute the next line until the first install is completed. So I'm looking for similar behavior. I've tried a couple of things from reading but none of them have worked. As you can see, the places where I've put the "wait" command is where I want to to wait for the GUI installer to finish. #!/bin/bash # Install Script for OS X BYOD Laptops # Installing Office 2016 open /Volumes/USB30FD/packages/Microsoft_Office_2016_Volume_Installer.pkg wait # sudo installer -verboseR -pkg /Volumes/USB30FD/packages/Microsoft_Office_2016_Volume_Installer.pkg -target / sudo installer -verboseR -pkg /Volumes/USB30FD/packages/Microsoft_AutoUpdate_3.2.0_Updater.pkg -target / sudo installer -verboseR -pkg /Volumes/USB30FD/packages/Microsoft_Excel_15.15.0_Updater.pkg -target / sudo installer -verboseR -pkg /Volumes/USB30FD/packages/Microsoft_OneNote_15.15.1_Updater.pkg -target / sudo installer -verboseR -pkg /Volumes/USB30FD/packages/Microsoft_Outlook_15.15.0_Updater.pkg -target / sudo installer -verboseR -pkg /Volumes/USB30FD/packages/Microsoft_PowerPoint_15.15.0_Updater.pkg -target / sudo installer -verboseR -pkg /Volumes/USB30FD/packages/Microsoft_Word_15.15.0_Updater.pkg -target / defaults write com.apple.dock persistent-apps -array-add 'tile-datafile-data_CFURLString/Applications/Microsoft Word.app_CFURLStringType0' defaults write com.apple.dock persistent-apps -array-add 'tile-datafile-data_CFURLString/Applications/Microsoft Excel.app_CFURLStringType0' defaults write com.apple.dock persistent-apps -array-add 'tile-datafile-data_CFURLString/Applications/Microsoft PowerPoint.app_CFURLStringType0' defaults write com.apple.dock persistent-apps -array-add 'tile-datafile-data_CFURLString/Applications/Microsoft Outlook.app_CFURLStringType0' killall -HUP Dock # Install ShareFile\ sudo cp -r /Volumes/USB30FD/apps/ShareFile.app /Applications/ wait open -a /Applications/ShareFile.app wait # Install Absolute Computrace # sudo installer -verboseR -pkg /Volumes/USB30FD/packages/RPClient.pkg -target / open /Volumes/USB30FD/packages/RPClient.pkg wait open /Volumes/USB30FD/Ctclient103319-304806/ctmweb.app # Install Symantec Endpoint Protection # Run the GUI installer instead: open /Volumes/USB30FD/apps/Additional\ Resources/SEP.mpkg sudo installer -verboseR -pkg /Volumes/USB30FD/apps/Additional\ Resources/SEP.mpkg -target / wait /Library/Application\ Support/Symantec/LiveUpdate/LUTool # Install Trend Disk Encryption open /Volumes/USB30FD/packages/Trend\ Micro\ Full\ Disk\ Encryption.pkg I'm pretty novice when it comes to shell scripts, so the simpler the better. Thanks!
Fish (11 rep)
Nov 5, 2015, 10:44 PM • Last activity: Apr 6, 2025, 09:39 AM
0 votes
0 answers
26 views
Zenity Access Keys
The [Gnome Help zenity manual](https://help.gnome.org/users/zenity/stable/usage.html.en) explains: >An access key is a key that enables you to perform an action from the keyboard rather than use the mouse to choose a command from a menu or dialog. Each access key is identified by an underlined lette...
The [Gnome Help zenity manual](https://help.gnome.org/users/zenity/stable/usage.html.en) explains: >An access key is a key that enables you to perform an action from the keyboard rather than use the mouse to choose a command from a menu or dialog. Each access key is identified by an underlined letter on a menu or dialog option. Some Zenity dialogs support the use of access keys. I tried to use this feature with several Zenity dialogues but I had no success. A MWE:
--list  --column "Item"  "Apples"\  "Oranges"\  "Pears"
Adding an underscore (e.g. "_Apples") as explained by the Help page the Access Key does not seem to work. Question: the manual says that "some Zenity dialogs" support this feature. Which dialogues? I tried several dialogues but I failed. Thanks a lot.
alcuinus (1 rep)
Mar 23, 2025, 09:23 PM • Last activity: Mar 23, 2025, 10:02 PM
1 votes
0 answers
25 views
Make Gnome/GTK scroll bars always follow the cursor
Gnome (or GTK) has introduced something I would personally hesitate to call a feature, since it looks and behaves like a bug, where when you grab a scroll bar thumb you're suddenly no longer moving it at the speed of your cursor (i.e. the way everything else in the entire mouse interface paradigm be...
Gnome (or GTK) has introduced something I would personally hesitate to call a feature, since it looks and behaves like a bug, where when you grab a scroll bar thumb you're suddenly no longer moving it at the speed of your cursor (i.e. the way everything else in the entire mouse interface paradigm behaves) but you instead start moving it at some arbitrary slower speed. Apparently it's called *Smooth Scrolling* . This creation makes it difficult for me to scroll, because even if I hadn't found its actual design decisions highly questionable, it almost certainly also has a defective implementation which makes it needlessly disruptive — hence my question: **How do I turn this off?** The linked answer from 2020 above is to a distinctly different question, but mentions that it was not possible to disable it at the time. It seemed like a good idea to ask specifically for how to do this.
Andreas (573 rep)
Mar 19, 2025, 03:43 AM • Last activity: Mar 20, 2025, 02:10 AM
-2 votes
1 answers
1418 views
Kali Linux don't load GUI automatically
I have Gm3 display manager, but recently I installed lxdm display manager. During the installation it prompted me to select the default manager from where I selected lxdm, but upon reboot it booted into cli (not grub rescue) asking login password, so logged in and changed the display manager to gdm3...
I have Gm3 display manager, but recently I installed lxdm display manager. During the installation it prompted me to select the default manager from where I selected lxdm, but upon reboot it booted into cli (not grub rescue) asking login password, so logged in and changed the display manager to gdm3 by sudo nano /etc/X11/default-display-manager. I changed it from /usr/sbin/lxdm to usr/sbin/gdm3 but upon reboot it was the same CLI, so I started gdm3 by sudo systemctl start gdm3.service and it loaded the GUI. Every time I boot into Kali Linux, I have to do the systemctl start step to load the GUI. Does anyone have any idea how to fix this and load the gdm3 GUI automatically?
faizanbashir29 (1 rep)
Jul 9, 2023, 01:09 PM • Last activity: Mar 16, 2025, 04:06 PM
2 votes
0 answers
43 views
How do I increase the Debian window header button size?
I made a DIY DAB radio using a Raspberry Pi 5 and a 7-inch 1024x600px HDMI screen, running Raspberry Pi OS (Debian 12). The problem is, that the header buttons of each window is too small for operation reliable using the touchscreen. [![DAB radio screenshot for illustration][1]][1] I tried the follo...
I made a DIY DAB radio using a Raspberry Pi 5 and a 7-inch 1024x600px HDMI screen, running Raspberry Pi OS (Debian 12). The problem is, that the header buttons of each window is too small for operation reliable using the touchscreen. DAB radio screenshot for illustration I tried the following - gsettings get org.gnome.desktop.interface gtk-theme returns 'PiXnoir' - nano /usr/share/themes/PiXnoir/gtk-3.0/gtk.css shows @import url("../../PiXflat/gtk-3.0/gtk-contained.css"); - therefore I modified nano /usr/share/themes/PiXflat/gtk-3.0/gtk-contained.css - I modified the following parameter: modified codeline But that did not change the header size at all. How can I enlarge the header buttons? What did I do wrong? (If additional system informationa are required, please feel free to ask)
Florian (71 rep)
Mar 15, 2025, 08:52 PM
2 votes
3 answers
2396 views
How to set X11 Window Class on application startup
I have an application that doesn't set its own x11 window class, is there an easy way to do this from the command line? I've searched around for an x11 command to do it and haven't been able to find anything. Example: ``` some_command --window-class 'NewWindowClass' --run MY_PROGRAM ```
I have an application that doesn't set its own x11 window class, is there an easy way to do this from the command line? I've searched around for an x11 command to do it and haven't been able to find anything. Example:
some_command --window-class 'NewWindowClass' --run MY_PROGRAM
QuaDECH (31 rep)
Feb 16, 2021, 01:29 AM • Last activity: Mar 1, 2025, 05:55 AM
Showing page 1 of 20 total questions