Sample Header Ad - 728x90

Unix & Linux Stack Exchange

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

Latest Questions

1 votes
2 answers
78 views
Does Linux have a generic way to dynamically open ports? (Desktop)
By generic, I mean, mostly standard, i.e. not dependent on `ufw` or `firewalld`. What I am asking is if there is something akin to what you have on Windows, where if some game wishes to "Open to Lan" and current firewall doesn't allow it, you are prompted to allow those changes. In other words, is t...
By generic, I mean, mostly standard, i.e. not dependent on ufw or firewalld. What I am asking is if there is something akin to what you have on Windows, where if some game wishes to "Open to Lan" and current firewall doesn't allow it, you are prompted to allow those changes. In other words, is there some standard way a developer could make a GUI application for Linux which requests for a port to open for the remaining of the lifespan of the application? I am sure this is a problem that has been thought of before, but I can't find a solution that satisfy these requirements: - User is prompted for firewall change - Granted privilege is clearly scoped to said modification - Required trust in said application requesting privileges is minimized - Resting said modifications doesn't request privileges once again / Reset managed by system Even for a permanent change, I don't know of anything other than for the application to request full root privileges and then use iptables behind the scenes.
Mathias Sven (273 rep)
Jul 28, 2025, 09:50 PM • Last activity: Jul 29, 2025, 09:07 AM
0 votes
0 answers
9 views
How can know the exact size of icon called in the menu?
My system: debian12 + lxde (desktop) + pcmanfm (file manager).There are many sizes for the same icons: ls /usr/share/icons/hicolor 128x128 192x192 22x22 256x256 32x32 40x40 48x48 56x56 72x72 96x96 index.theme symbolic 16x16 20x20 24x24 256x256@2 36x36 42x42 512x512 64x64 8x8 icon-theme.cache scalabl...
My system: debian12 + lxde (desktop) + pcmanfm (file manager).There are many sizes for the same icons: ls /usr/share/icons/hicolor 128x128 192x192 22x22 256x256 32x32 40x40 48x48 56x56 72x72 96x96 index.theme symbolic 16x16 20x20 24x24 256x256@2 36x36 42x42 512x512 64x64 8x8 icon-theme.cache scalable How can know the exact size of icon in the menu? They are 16x16 or 20x20 or 22x22 or 24x24? enter image description here Which size is called in my OS? Maybe it is 16*16 in your OS setting,but differ in my OS setting.
showkey (499 rep)
Jul 25, 2025, 02:11 AM • Last activity: Jul 25, 2025, 02:19 AM
0 votes
2 answers
71 views
Multiple desktop files using the same system wide /usr/share/application desltop files
I have an application in which I have created a /usr/share/application/foo.desktop from my dpkg. I wish to have multiple instances of LINK types on my ~/Desktop/ which vary only the Name and Exec. It had looked easy and my attempt at it 'sort of' worked, except the Desktop/foo1.desktop and foo2.desk...
I have an application in which I have created a /usr/share/application/foo.desktop from my dpkg. I wish to have multiple instances of LINK types on my ~/Desktop/ which vary only the Name and Exec. It had looked easy and my attempt at it 'sort of' worked, except the Desktop/foo1.desktop and foo2.desktop do not get the Icon from the /usr/share/application file. What I want seems simple enough. You have a standard desktop file installed by package and then link to it, and each link varies some key parameters. In my case this is a type of recorder, and I would initiate multiple different data stream records. ChatGPT seems to think this cannot be done. I am skeptical as most of it does seem to work. I feel that I am missing some key point so suggestions are welcome. If anyone is interested, I can post examples.
Dale Amon (101 rep)
Oct 30, 2024, 04:59 PM • Last activity: Jul 17, 2025, 04:17 PM
6 votes
3 answers
11257 views
.desktop file not working
I wrote the following `.desktop` file for my application named Qtag: [Desktop entry] Name=Qtag Comment=Audio tag editor Exec=qtag Icon=/usr/share/pixmaps/Qtag.png Terminal=false Categories=Multimedia; Version=1.0 Type=Application I copied it to `/usr/share/applications`, but I still cannot find my a...
I wrote the following .desktop file for my application named Qtag: [Desktop entry] Name=Qtag Comment=Audio tag editor Exec=qtag Icon=/usr/share/pixmaps/Qtag.png Terminal=false Categories=Multimedia; Version=1.0 Type=Application I copied it to /usr/share/applications, but I still cannot find my app in the menu (I use KDE Plasma 5 application launcher). When I try to open the file in Dolphin (the KDE file manager), it says that there is no Type=... entry in the file. I use KDE Plasma 5. The executable and the icon are in the right places (qtag is in /usr/local/bin).
amethystAnt (143 rep)
May 10, 2015, 06:48 PM • Last activity: Jul 17, 2025, 04:00 PM
2 votes
2 answers
5529 views
Add new category in Menu (Xfce)
I tried doing the following to add a new category named "Electronics" in Whisker Menu on Linux Mint 17.1 with Xfce 4.10.1: 1. I added this text to `~/.config/menus/xfce-applications.menu` just after rest of entries for categories &ltMenu&gt &ltName&gtElectronics&lt/Name&gt &ltDirectory&gtxfce-electr...
I tried doing the following to add a new category named "Electronics" in Whisker Menu on Linux Mint 17.1 with Xfce 4.10.1: 1. I added this text to ~/.config/menus/xfce-applications.menu just after rest of entries for categories
    <Menu>
        <Name>Electronics</Name>
        <Directory>xfce-electronics.directory</Directory>
        <Layout>
            <Merge type="menus" />
            <Filename>geda-gattrib.desktop</Filename>
            <Merge type="files" />
        </Layout>
    </Menu>
and Electronics down in the file (with other similar entries). 2. Then, I added Electronics to ~/.config/menus/applications.menu along with similar entries. 3. Last, I made a new file named ~/.local/share/desktop-directories/xfce-electronics.directory and added wrote the following to it:
    [Desktop Entry]
    Type=Directory
    Icon=file-manager
    Name=Electronics
    Comment=
However, I am not seeing a new category in either Whisker Menu or Alacarte or Menulibre (menu editors). Is there something else to be done that I missed?
strNOcat (383 rep)
Dec 25, 2014, 04:05 AM • Last activity: Jul 17, 2025, 02:59 PM
1 votes
1 answers
9879 views
How to Change Size of Desktop
UPDATE: It appears my icons are appearing below my screen. This is part of a screenshot, but I cannot see it on my monitor: ![enter image description here][1] ------------------------------------------------- I am running Linux Mint 16 Cinnamon. I changed the size of my panel, and now my desktop ico...
UPDATE: It appears my icons are appearing below my screen. This is part of a screenshot, but I cannot see it on my monitor: enter image description here ------------------------------------------------- I am running Linux Mint 16 Cinnamon. I changed the size of my panel, and now my desktop icons overflow to underneath the panel. How can I prevent this from happening? enter image description here I want to be able to auto-sort it without it returning to being hidden. enter image description here
Evorlor (169 rep)
Jan 24, 2014, 06:46 PM • Last activity: Jul 17, 2025, 01:00 PM
0 votes
1 answers
1917 views
manjaro not showing desktop files
I have manjaro 20.1.1 installed alongside ubuntu 20.04. They share the same home partition. There is a `Desktop` directory and Ubuntu has no problem recognizing it and showing the files inside it on the desktop. But Manjaro doesn't. In Manjaro, there is nothing on the desktop and when I right click...
I have manjaro 20.1.1 installed alongside ubuntu 20.04. They share the same home partition. There is a Desktop directory and Ubuntu has no problem recognizing it and showing the files inside it on the desktop. But Manjaro doesn't. In Manjaro, there is nothing on the desktop and when I right click the desktop, I can only see three options: Change background; Display settings; Settings. I expect to see something like 'Create A New File' but there isn't one. The the nautilus doesn't show the Desktop directory on the left side pane either. I tried setting the XDG_DESKTOP_DIR="$HOME/Desktop" in ~/.config/user-dirs.dirs but no luck. Both ubuntu and manjaro run the gnome desktop environment. I don't know what's going on with my manjaro. What should I do to fix the manjaro desktop folder? What could be the possible cause of this problem?
z.h. (1084 rep)
Oct 6, 2020, 05:11 PM • Last activity: Jul 16, 2025, 10:07 PM
2 votes
2 answers
3527 views
No mouse and close/maximize button Elementary OS
I've downloaded and installed Elementary OS in my laptop, but something weird is happening with me. I made an USB Flash Drive installation, using UNetbootin. I was able to test it (like a Live-CD) and everything went just fine. So I decided to install it. When I installed it, these bugs started to h...
I've downloaded and installed Elementary OS in my laptop, but something weird is happening with me. I made an USB Flash Drive installation, using UNetbootin. I was able to test it (like a Live-CD) and everything went just fine. So I decided to install it. When I installed it, these bugs started to happen: - The mouse pointer takes ~30 seconds to appear (i'm still able to click things), and when it does, all I see is an "X" on my screen. Perhaps this is the standard mouse pointer, right? - When I try to close or maximize a window, the top bar with these options just doesn't exists. I'm able to drag the window across the screen, but when I double-click (hoping the window will maximize), the system stops working for a while, and then the window crashes. - I've tested Elementary OS before installing. When I click something in the Plank, a small animation starts playing. This doesn't happen in the installed version. There are other things happening, but these are the "main bugs" I can remember now. I tried to do these: - I tried reinstalling the system. Still the same. - I tried to update the system. 100mb of updates, and the bugs didn't go away. - A friend of mine asked me to type "sudo apt-get update" and "sudo-apt get upgrade" in the terminal. Still the same. Since I've always been a Windows user, I don't know why this is happening and neither I know how can I fix this. My laptop config is: Dell Inspiron 14R (5420), Core i7 3612QM 2.10GHz, 8GB RAM, nVidia 630GT 1GB and 1TB storage. Any thoughts?
Ricardo Pieper (21 rep)
Jul 28, 2013, 01:18 AM • Last activity: Jun 30, 2025, 09:02 AM
26 votes
3 answers
175401 views
How to scale the resolution/display of the desktop and/or applications?
While using Xorg X11, on KDE/Gnome/XFCE **how can we scale the display/resolution** for the whole desktop and/or per application? **(when this is not available on the settings GUI)** The purpose is to keep the screen resolution unchanged (at max) while scaling the size (bigger/smaller) of the deskto...
While using Xorg X11, on KDE/Gnome/XFCE **how can we scale the display/resolution** for the whole desktop and/or per application? **(when this is not available on the settings GUI)** The purpose is to keep the screen resolution unchanged (at max) while scaling the size (bigger/smaller) of the desktop/applications.
intika (15066 rep)
Jul 5, 2020, 08:46 PM • Last activity: Jun 24, 2025, 08:59 PM
2 votes
1 answers
6439 views
How do I add shortcuts on Desktop in Debian 12 (Bookworm)?
I changed from Kali Linux to simple Debian and I dislike the results so far. Previously I had shortcuts on the desktop but switching to Debian 12 there are no shortcuts? How do I add them?
I changed from Kali Linux to simple Debian and I dislike the results so far. Previously I had shortcuts on the desktop but switching to Debian 12 there are no shortcuts? How do I add them?
Apoliticalboy (121 rep)
Oct 2, 2023, 10:52 AM • Last activity: Jun 18, 2025, 08:02 AM
14 votes
2 answers
4384 views
Benefiting of sched_autogroup_enabled on the desktop
I am running a 2.6.37 kernel with `sched_autogroup_enabled` set to 1. I am not certain that I am seeing the benefits of this patch since: - I am launching my applications from the desktop; - applications launched from the desktop share the same tty; - applications with the same tty do not benefit fr...
I am running a 2.6.37 kernel with sched_autogroup_enabled set to 1. I am not certain that I am seeing the benefits of this patch since: - I am launching my applications from the desktop; - applications launched from the desktop share the same tty; - applications with the same tty do not benefit from the mentioned kernel feature. How can I select some applications which should be on a different tty from the rest?
Robert Munteanu (980 rep)
Mar 11, 2011, 01:01 PM • Last activity: Jun 11, 2025, 09:07 AM
0 votes
1 answers
42 views
macOS: list all Users with Admin privileges
How can I get the list of all Users with Admin privileges, on all selected Macs, in Apple Remote Desktop? I have tried: ```shell dscl . -list /Groups/admin GroupMembership ``` But this does not list anything, not even the results window opens.
How can I get the list of all Users with Admin privileges, on all selected Macs, in Apple Remote Desktop? I have tried:
dscl . -list /Groups/admin GroupMembership
But this does not list anything, not even the results window opens.
JRP (9 rep)
Jun 6, 2025, 10:07 AM • Last activity: Jun 6, 2025, 02:03 PM
2 votes
1 answers
2373 views
Lubuntu 15.10 dual monitor setup issues
**Problem description** I recently updated my two monitor system from Lubuntu 14.04 to Lubuntu 15.10. I set everything on the new system exactly as on the old one before and I figured out a strange behavior on my desktop: The primary monitor 1, the start menu position and the position where the desk...
**Problem description** I recently updated my two monitor system from Lubuntu 14.04 to Lubuntu 15.10. I set everything on the new system exactly as on the old one before and I figured out a strange behavior on my desktop: The primary monitor 1, the start menu position and the position where the desktop icons are located somehow were messed up. Additionally I could not set desktop wallpaper for both monitors. On the screenshot below you could see the situation. enter image description here Not only the position of the start menu and icons were messed up, but additionally I couldn't set two different wallpaper, since the Desktop Preferences dialog only changed the wallpaper on monitor 1, but the image scaling took the whole Xserver screen as argument (3840x1200). There were two different dialogs popping up when using the right mouse click on the desktop. On monitor 2 the openbox popup, on monitor 1 the LXDE popup with limited options. No matter what I select, only the wallpaper for monitor 1 could be changed. My system setup is:
Operating System: Lubuntu 15.10
Graphics Adapter: Nvidia GeForce GTX 750
Driver:           Nvidia 352.63
Monitor 1:        HP LP2475w / connected via DVI-I-1 / 1920x1200
Monitor 2:        HP LP2475w / connected via DVI-D-0 / 1920x1200
XServer Screen:   3840x1200
PCManFM:          1.2.3
Anybody having the same problem or a solution how to fix this?
Ede (21 rep)
May 23, 2016, 12:29 PM • Last activity: May 19, 2025, 04:00 PM
5 votes
1 answers
2376 views
How to set the default application to open folders?
I'm really stuck; I want to add `Open with vs code` to the folders context menu following the same approach as for files by means of the so-called MIME; editing the file `~/.config/mimeapps.list` allows me to change default applications for different file extensions. My preferred default application...
I'm really stuck; I want to add Open with vs code to the folders context menu following the same approach as for files by means of the so-called MIME; editing the file ~/.config/mimeapps.list allows me to change default applications for different file extensions. My preferred default application is VS Code; I found inode/directory is the file type for a directory in MIME, so I added this line inode/directory=code-insiders.desktop to the file ~/.config/mimeapps.list in [Default Applications] field but Open with vs code doesn't show as I right-click on folders. I can confirm what I did makes sense by showing the output of this command gio mime inode/directory:
Default application for “inode/directory”: code-insiders.desktop
Registered applications:
	code-insiders.desktop
	org.gnome.Nautilus.desktop
	org.gnome.baobab.desktop
Recommended applications:
	code-insiders.desktop
	org.gnome.Nautilus.desktop
	org.gnome.baobab.desktop
Similarly, the output of gio mime text/plain by which the corresponding files context menu appears Open with vs option is
Default application for “text/plain”: code-insiders.desktop
Registered applications:
	code-insiders.desktop
	libreoffice-writer.desktop
	org.gnome.gedit.desktop
	vim.desktop
Recommended applications:
	code-insiders.desktop
	libreoffice-writer.desktop
	org.gnome.gedit.desktop
	vim.desktop
The default application for opening text files by right-clicking shows Open with vs but not the case for folders.
EnthusiastiC (163 rep)
Oct 28, 2022, 10:25 AM • Last activity: May 11, 2025, 05:03 AM
0 votes
1 answers
348 views
How to change font size on Desktop icons in KDE Plasma 6?
Can somebody tell me how to adjust the font size of the font on the desktop? I don't want to change the other fonts across my system, only those on the desktop. Also is there a way to decrease the spacing between the text on the desktop icons? What about increasing the number of characters that appe...
Can somebody tell me how to adjust the font size of the font on the desktop? I don't want to change the other fonts across my system, only those on the desktop. Also is there a way to decrease the spacing between the text on the desktop icons? What about increasing the number of characters that appear on each line under the icons? KDE Plasma 6 on Fedora 41.
DennyX (1 rep)
Feb 9, 2025, 07:57 PM • Last activity: Mar 21, 2025, 01:09 AM
1 votes
1 answers
1408 views
How do I stop my Ubuntu desktop computer from "sleeping" when nobody is logged in?
**In short** - I have an issue where my Ubuntu Desktop computer seems to "sleep" when no user is logged in, and I would love to prevent this. **More Details -** > Pre-emptive apology if something I write is unclear or redundant - I'm > very new to Linux & Ubuntu. To state the obvious - the issue is...
**In short** - I have an issue where my Ubuntu Desktop computer seems to "sleep" when no user is logged in, and I would love to prevent this. **More Details -** > Pre-emptive apology if something I write is unclear or redundant - I'm > very new to Linux & Ubuntu. To state the obvious - the issue is not my monitor turning off, it is that the computer seems to fall asleep after a few minutes of being in the user login screen with no user logged in. The symptoms are: - Computer visually appears powered down, lighting up only when the power button is pressed again - Display is off - Interacting with keyboard/mouse which are plugged in doesn't do anything - (The real issue) servers that the computer is running are offline This is in contrast to when I'm actually logged into my user. In this scenario, the screen can turn off after X minutes but the computer never logs out/goes to sleep (as per the configuration in Settings -> Power -> Power Saving). This is a pretty fresh installation running Ubuntu 24.04.2 LTS. I installed Ubuntu Desktop and changed to lightdm. Thanks in advance! Would be happy to share more info if relevant.
Clicksurfer (13 rep)
Mar 4, 2025, 02:09 PM • Last activity: Mar 7, 2025, 12:44 PM
18 votes
4 answers
16779 views
Kde: how to bind permanently an application to a desktop/activity?
Im pretty new to Kde 4.8 and I can not figure out how to get this behaviour that I used to have in Gnome: 1. Desktop 1: developer/misc (browser, editor/ide, diff, etc..) 2. Desktop 2: virtual machines (vbox) 3. Desktop 3: graphic (gimp, inkscape, phatch) 4. Desktop 4: file management (ftp, ssh, etc....
Im pretty new to Kde 4.8 and I can not figure out how to get this behaviour that I used to have in Gnome: 1. Desktop 1: developer/misc (browser, editor/ide, diff, etc..) 2. Desktop 2: virtual machines (vbox) 3. Desktop 3: graphic (gimp, inkscape, phatch) 4. Desktop 4: file management (ftp, ssh, etc..) In gnome is possible to configure the windows to **always** appear in a specific desktop, and this is what I want to achieve in Kde. I googled around so much, and looks like activities can't do that (yet), becose using the window's menu only works for the current session, and get lost after reboot. By the way, I suppose that activities *can* do that, becose in the default activities that come with Kde 4.8 Gimp used to show only in the *photo* activity (I gave a look to the activity configuration but I didn't find anything about this behavior). Onestly, my goal is to obtain this scenario, if it is not possible with activities but with desktops, for me is ok. So, any idea on how to obtain this behavior in Kde 4.8? I already read this similar question , but im looking for a _permanent_ solution.
Strae (233 rep)
Aug 16, 2012, 11:45 PM • Last activity: Feb 9, 2025, 06:22 AM
0 votes
1 answers
43 views
Prevent dialog windows from opening on a different X server
Frequently this scenario happens when I'm logged in in more than one X session on the same machine, for example locally (`:0.0`) and remotely through RDP. If a desktop application (like the Chrome browser, I suspect it's GTK in general) opens a dialog window, for example to save a file, the dialog w...
Frequently this scenario happens when I'm logged in in more than one X session on the same machine, for example locally (:0.0) and remotely through RDP. If a desktop application (like the Chrome browser, I suspect it's GTK in general) opens a dialog window, for example to save a file, the dialog window often appears on the other X session. Which is obviously hard to access at the moment. The application then seems like frozen until the dialog is dealt with at the other X session. What's even worse is that sometimes the dialog apparently "opens" on an X session that isn't accessible any more, such as closed RDP session. Then it's not possible to access it at all and and the only solution is to forcibly kill the application. So I'm looking for ways how to: - Debug the issue - why it's happening in the first place. - Prevent it from happening. (Another possible solution/workaround would be to avoid creating multiple sessions at all, if that'd be possible (https://unix.stackexchange.com/questions/780441/can-an-xrdp-server-be-configured-to-connect-to-an-existing-desktop-session).) ---- I suspect this might be related to systemd login sessions being stuck somehow (and then maybe causing some troubles over dbus):
$ loginctl list-sessions
SESSION  UID USER    SEAT  TTY  STATE   IDLE SINCE
   3602 2001 user    -     -    closing no   -
    c11 2001 user    -     -    closing no   -
     c7 2001 p       seat0 tty7 closing no   -
...
And subsequently misbehaving
Petr (1776 rep)
Jan 29, 2025, 10:18 AM • Last activity: Jan 29, 2025, 05:42 PM
5 votes
1 answers
737 views
Don't set wm_class of "Navigator" when starting Firefox
I'm starting Firefox as follows: ``` /usr/bin/firefox --no-remote -P Fastmail --class "FastmailFF" ``` The ultimate goal is to figure out a command to put in a .desktop file which will have it's own icon and exist separately to the normal browser. The above gets grouped under the current Firefox ico...
I'm starting Firefox as follows:
/usr/bin/firefox --no-remote -P Fastmail --class "FastmailFF"
The ultimate goal is to figure out a command to put in a .desktop file which will have it's own icon and exist separately to the normal browser. The above gets grouped under the current Firefox icon. When I inspect the window using xprop WM_CLASS command, I get the following back for the above:
WM_CLASS(STRING) = "Navigator", "FastmailFF"
and the following for the main Firefox:
WM_CLASS(STRING) = "Navigator", "firefox"
So I figure the common "Navigator" string is causing the grouping. Is there a way to prevent Navigator getting added upon startup? It looks like firefox is installed via a snap:
Version: 1:1snap1-0ubuntu2
I'm running gnome 42.5 and wayland
EoghanM (907 rep)
Mar 27, 2023, 09:56 PM • Last activity: Jan 17, 2025, 08:37 AM
3 votes
2 answers
2201 views
Graphics problem in 24.04 LTS
I installed Ubuntu 24.04 LTS inside a Virtual Box on a new Windows 11 host. Clicking on the File Manager on the Desktop (or on related buttons like trash bin or CD) does not show a normal window but just some colored stripes, sometimes blinking. A screenshot is appended. Other applications (terminal...
I installed Ubuntu 24.04 LTS inside a Virtual Box on a new Windows 11 host. Clicking on the File Manager on the Desktop (or on related buttons like trash bin or CD) does not show a normal window but just some colored stripes, sometimes blinking. A screenshot is appended. Other applications (terminal, software center, firefox, ...) run without any problem. Can anybody please give me a hint, where this problem may come from?Screenshot after clicking file manager
Holger (33 rep)
May 10, 2024, 02:31 PM • Last activity: Dec 30, 2024, 06:51 PM
Showing page 1 of 20 total questions