Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
0
answers
77
views
How to set a shell script as KDE file association
Disclaimer: Cross-posted from SU (which I know is usually discouraged) [_How to set a shell script as KDE file association_][SU]. Since with only 14 views and no response whatsoever within 3 days I do not have much hope there. [SU]: https://superuser.com/q/1828467/516482 ---- I'm connecting to a Win...
Disclaimer: Cross-posted from SU (which I know is usually discouraged) _How to set a shell script as KDE file association_ . Since with only 14 views and no response whatsoever within 3 days I do not have much hope there.
----
I'm connecting to a Win10 with an
There's a
But, this neither works when opening the downloaded
*.rdp
file supplied by _Citrix Netscaler Gateway_ via download in my FF.
I wrote a shell script that takes the *.rdp
file as $1
and it works in _Bash_:
bash
...
set -x
xfreerdp "$1" /monitors:0,2 /floatbar:sticky:off,default:hidden,show:always /u: /p:
...
To be able to run this script from within GUI apps I created a new _File Association_ with _Known Type_: _application/rdp_ since *.RPD
, *.rdp
was assigned to _Remmina_ before (and I removed these two from there):

~/.local/share/applications/Bash-RDP.desktop
.
In FF I have set:

*.rdp
in FF's downloads drop-down or _Downloads Library_ nor in my _Downloads_ folder in _Dolphin_. If I do so _xfreerdp_ appears in the taskbar with a progress circle for a few seconds only and without any further visual representation. And an _xfreerdp_ task remains at every try which I have to kill afterwards.
Gerold Broser
(415 rep)
Feb 5, 2024, 10:27 AM
17
votes
3
answers
17915
views
Setting a Flatpak app as the default web browser
I run Firefox from a Flatpak but I can't find how to have it open links when I click them in various XDG-compliant apps. How can I have `xdg-open` run Firefox from a Flatpak distribution? The application itself shows in preferences that it is not the default browser. It offers a button to set itself...
I run Firefox from a Flatpak but I can't find how to have it open links when I click them in various XDG-compliant apps. How can I have
xdg-open
run Firefox from a Flatpak distribution?
The application itself shows in preferences that it is not the default browser. It offers a button to set itself as default but it seems to have no effect.
sleblanc
(1217 rep)
Oct 16, 2020, 08:07 PM
• Last activity: Sep 10, 2023, 08:39 PM
1
votes
1
answers
786
views
How do I associate an application with all mime types it supports?
Let's say I have `xarchiver` installed by default, and associated by default with most archive types. I've installed `engrampa`, and now want to assciate it with the various archive types instead. I don't want to change each MIME association individually. When I uninstalled `xarchiver`, the associat...
Let's say I have
xarchiver
installed by default, and associated by default with most archive types.
I've installed engrampa
, and now want to assciate it with the various archive types instead. I don't want to change each MIME association individually.
When I uninstalled xarchiver
, the associations for various archive types automatically changed to engrampa
.
Is there a way to do this without uninstalling xarchiver
? Something like "assciate application X with all MIME types it supports"?
---
I'm using Fedora 38 XFCE spin, if it matters.
HolyBlackCat
(170 rep)
Jul 16, 2023, 09:44 AM
• Last activity: Jul 16, 2023, 12:22 PM
0
votes
1
answers
204
views
text/plain mimetype being set to "Python File (no console)"
After installing Wine and Python 2.7 in Wine, and then removing Wine, the plain text file format cannot be changed away from `Python File (no console)`.
After installing Wine and Python 2.7 in Wine, and then removing Wine, the plain text file format cannot be changed away from
Python File (no console)
.
Raymo111
(403 rep)
Oct 22, 2021, 08:29 PM
2
votes
1
answers
291
views
How can I associate a specific program to run against a specific file?
By default (on a double-click action), my GUI file manager (nemo) runs a text editor, for all files of mimetype=text/plain. I currently have a user text file `gnuplot.speedtest` (with mimetype text/plain), which I'd like to treat differently, by running gnuplot instead. Obviously, I still want the s...
By default (on a double-click action), my GUI file manager (nemo) runs a text editor, for all files of mimetype=text/plain.
I currently have a user text file
gnuplot.speedtest
(with mimetype text/plain), which I'd like to treat differently, by running gnuplot instead.
Obviously, I still want the standard default to apply to all other text files.
Jeremy Boden
(1344 rep)
Jan 10, 2021, 11:28 AM
• Last activity: Jan 10, 2021, 04:28 PM
0
votes
1
answers
698
views
Thunderbird: specify handler for opening file and arguments
In Thunderbird, I can set handler for opening files for given extension. Preferences -> Attachements I have specified I want to use `/usr/bin/mpv` for opening `wav` files. And I see that my preference has been saved in my profiles directory in `handlers.json`: "audio/x-wav":{"action":2,"extensions":...
In Thunderbird, I can set handler for opening files for given extension.
Preferences
-> Attachements
I have specified I want to use
/usr/bin/mpv
for opening wav
files. And I see that my preference has been saved in my profiles directory in handlers.json
:
"audio/x-wav":{"action":2,"extensions":["wav"],"handlers":[{"name":"mpv","path":"/usr/bin/mpv"}]}},"schemes":{}}
But I also need to specify commandline arguments to use, when opening with mpv
:
Thunderbird tries to open file as
mpv file.wav
instead, I need the file to be opened as:
mpv --player-operation-mode=pseudo-gui file.wav
How can I tell Thunderbird to use commandline arguments ?
Martin Vegter
(598 rep)
Sep 19, 2020, 06:45 AM
• Last activity: Sep 19, 2020, 09:46 AM
4
votes
1
answers
3050
views
KDE Dolphin: All file associations lost and "open with" provides no options
The other day, KDE/Dolphin seem to have lost all file associations, and the "open with" dialog box no longer presents a list of my applications. If I type an application shortcut name like "kate" into the dialog box, it will open it with kate. Presumably, some config file got corrupted somehow, but...
The other day, KDE/Dolphin seem to have lost all file associations, and the "open with" dialog box no longer presents a list of my applications. If I type an application shortcut name like "kate" into the dialog box, it will open it with kate.
Presumably, some config file got corrupted somehow, but which file is that? And can I rebuild it automatically from the list of applications in my start menu?
Edit: It seems this is only happening in certain folders.
Edit: I tried the thing in the comment DK Bose and that fixed it.
james@Q35~/nfs-cloud/websites/test_flask_site/static $ locate mimeapps.list
/home/james/.config/mimeapps.list
/home/james/.local/share/applications/mimeapps.list
/home/james/Downloads/haroopad-v0.13.1-x64/usr/share/applications/mimeapps.list
james@Q35~/nfs-cloud/websites/test_flask_site/static $ mv /home/james/.config/mimeapps.list /home/james/.config/mimeapps.list.bak
james@Q35~/nfs-cloud/websites/test_flask_site/static $ mv /home/james/.local/share/applications/mimeapps.list /home/james/.local/share/applications/mimeapps.list.bak
james@Q35~/nfs-cloud/websites/test_flask_site/static $ mv /home/james/Downloads/haroopad-v0.13.1-x64/usr/share/applications/mimeapps.list /home/james/Downloads/haroopad-v0.13.1-x64/usr/share/applications/mimeapps.list.bak


Stonecraft
(869 rep)
Dec 28, 2019, 05:25 AM
• Last activity: Dec 29, 2019, 05:21 AM
0
votes
1
answers
39
views
Why does the help for some applications open in Seamonkey composer?
I am running Linux in the form of openSuse Leap 15.0 with KDE Plasma 5.12.6 and have applied patches regularly. If I run some applications, for example Gimp (2.8.22), and ask for help, it starts Seamonkey in edit mode. Specifically, in Gimp, when I choose Help - User Manual - Basic Concepts from the...
I am running Linux in the form of openSuse Leap 15.0 with KDE Plasma 5.12.6 and have applied patches regularly. If I run some applications, for example Gimp (2.8.22), and ask for help, it starts Seamonkey in edit mode. Specifically, in Gimp, when I choose Help - User Manual - Basic Concepts from the menu, a Seamonkey process is opened with command
/bin/sh /usr/bin/seamonkey -edit /usr/share/gimp/2.0/help/en_GB/gimp-concepts-main-windows.html
I have looked in various configuration settings (e.g. in Settings - System Settings from the menu, then Personalisation - Applications - Default Applications - Web Browser, where Firefox is specified for **http**(**s**)), but cannot see where it says to use Seamonkey.
PJTraill
(184 rep)
Mar 1, 2019, 12:01 AM
1
votes
0
answers
87
views
Can't change the default app for opening AVI files
I'm using Cinnamon on Devuan ASCII (which is essentially Debian Stretch without systemd). I'm trying to change the default player for AVI files from Dragon player to Gnome-MPV. [![enter image description here][1]][1] But - while this seems to be possible, after making the change the default player i...
I'm using Cinnamon on Devuan ASCII (which is essentially Debian Stretch without systemd).
I'm trying to change the default player for AVI files from Dragon player to Gnome-MPV.
But - while this seems to be possible, after making the change the default player is _still_ Dragon - nothing has happened.
I would try to debug this myself if I'd gotten any kind of an error message, but I don't even have that. What do I do?

einpoklum
(10753 rep)
Jan 11, 2019, 11:04 PM
• Last activity: Jan 12, 2019, 10:55 PM
1
votes
1
answers
1331
views
How to associate file extensions with my own Python script in Linux?
I wrote Python script to open pickled figure files, called it `view_fig_pickle.py` and put it into `~/bin` directory. Now how to associate it with file with endings '.fig.pickle'?
I wrote Python script to open pickled figure files, called it
view_fig_pickle.py
and put it into ~/bin
directory.
Now how to associate it with file with endings '.fig.pickle'?
Dims
(3425 rep)
Dec 22, 2018, 03:24 PM
• Last activity: Dec 25, 2018, 11:06 AM
Showing page 1 of 10 total questions