You are not logged in.

#1 2019-02-01 01:27:18

viniosity
Member
From: New York, NY
Registered: 2005-01-22
Posts: 404
Website

[Solved] Where are the .desktop files

Sorry, newbie question here but I am trying to get Firefox to launch with touch support. In the past that meant changing the /usr/share/applications/firefox.desktop file to use

    Exec env MOZ_USE_XINPUT2=1 /usr/lib/firefox/firefox 

That doesn't seem to be working on Arch and I can't find anything in /usr/local/share/applications. So where's the desktop file hiding? FWIW I'm launching using Gnome.

Last edited by viniosity (2019-02-01 18:00:25)

Offline

#2 2019-02-01 01:34:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Where are the .desktop files


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2019-02-01 01:40:14

viniosity
Member
From: New York, NY
Registered: 2005-01-22
Posts: 404
Website

Re: [Solved] Where are the .desktop files

Thanks. As mentioned, I don't have any entries where the wiki suggests looking (/usr/local/share/applications).

Offline

#4 2019-02-01 01:50:30

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Where are the .desktop files

┌─[Veles ~]
└─╼ pacman -Ql firefox | grep desktop
firefox /usr/share/applications/firefox.desktop

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2019-02-01 01:59:36

viniosity
Member
From: New York, NY
Registered: 2005-01-22
Posts: 404
Website

Re: [Solved] Where are the .desktop files

Thanks again, as mentioned, I've already modified that file. Here's my line in its complete state. I just added the env MOZ_USE_XINPUT2=1 to it but it's has some other stuff about a private window so I don't think it's actually referencing this file when launching from Gnome.

Exec=env MOZ_USE_XINPUT2=1 /usr/lib/firefox/firefox --private-window %u

Offline

#6 2019-02-01 02:08:40

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,452

Re: [Solved] Where are the .desktop files

Copy the firefox.desktop to ~/.local/share/applications/Firefox-Touch.desktop and make the changes you want: I recommend giving it a unique "Name" entry and obviously adjust Exec line:

[Desktop Entry]
Name=Firefox Touch
Comment=Browse the Web Touch
Icon=firefox
Exec=[your exec line here]
Terminal=false
Type=Application
Categories=Network;WebBrowser;
StartupNotify=true

If you use a DE, it should pick up this file in whatever launcher it's using. For example, I use KDE and the KDE launcher automatically picks up desktop files you put into ~/.local/share/applications.

Offline

#7 2019-02-01 02:40:20

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,471
Website

Re: [Solved] Where are the .desktop files

I'm pretty sure twelveeighty's post captures the solution, but for future reference, please be more precise in your post

viniosity wrote:

Thanks. As mentioned, I don't have any entries where the wiki suggests looking (/usr/local/share/applications).

viniosity wrote:

Thanks again, as mentioned, I've already modified that file...

How can you have already have modified a file that you just claimed didn't exist?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2019-02-01 03:11:07

viniosity
Member
From: New York, NY
Registered: 2005-01-22
Posts: 404
Website

Re: [Solved] Where are the .desktop files

His/her first suggestion was to look at the wiki which points to /usr/local/share/applications. That folder doesn't exist. The second response recommends looking at /usr/share/applications. As mentioned I modified that .desktop file already.

I understand that I can create a new entry under /usr/local/share/applications and give it a unique name. It's just odd that I have to. I don't understand where Gnome is launching firefox from if not /usr/share/applications/firefox.desktop which I've already modified.

Last edited by viniosity (2019-02-01 03:11:52)

Offline

#9 2019-02-01 07:54:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,284

Re: [Solved] Where are the .desktop files

viniosity wrote:

look at the wiki which points to /usr/local/share/applications

wiki wrote:

These files usually reside in /usr/share/applications/ or /usr/local/share/applications/

1. Did you try whether punching the command into an interactive shell actually gets you the desired results?
2. "launching from Gnome" isn't a thing. If you've a custom link/button/widget/shortcut for this, it can do any number of things
3. There are multiple entries in /usr/share/applications/firefox.desktop - the "--private-window %u" is just one of them and launches a pornbrowsing session.
4. Do not edit distro provided files anyway, https://bbs.archlinux.org/viewtopic.php … 1#p1829661 is the way to go. You "have to" because your alterations will be overridden w/ every update.

Online

#10 2019-02-01 18:00:10

viniosity
Member
From: New York, NY
Registered: 2005-01-22
Posts: 404
Website

Re: [Solved] Where are the .desktop files

seth wrote:

1. Did you try whether punching the command into an interactive shell actually gets you the desired results?
2. "launching from Gnome" isn't a thing. If you've a custom link/button/widget/shortcut for this, it can do any number of things
3. There are multiple entries in /usr/share/applications/firefox.desktop - the "--private-window %u" is just one of them and launches a pornbrowsing session.
4. Do not edit distro provided files anyway, https://bbs.archlinux.org/viewtopic.php … 1#p1829661 is the way to go. You "have to" because your alterations will be overridden w/ every update.

1. Yep, confirmed it does work from the command line
2. Good to know, thank you!
3. THIS! I had just spotted and changed the last one. Altering the others was the solution - thank you!
4. This is true too. I had it working with Firefox 64 and it got overwritten when Firefox 65 came out. Creating a local version is definitely a good option

Thanks all, marking this solved!

Offline

Board footer

Powered by FluxBB