Skip to content

linhx/save-last-active-firefox-profile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

save-last-active-firefox-profile

This repo for tracking the last active profile and storing the profile name in a file. We can use it to open external url to the last active profile, just like google chrome.

# update /usr/share/applications/firefox.desktop or /var/lib/snapd/desktop/applications/firefox_firefox.desktop
# depends on which file is set for default browser
Exec=/yourpath/firefox -P "$(result=$(head -n 1 /yourpath/output.txt); [ -z "$result" ] && echo "default" || echo "$result")" -new-tab %u

TODO

Build

sudo apt-get install libx11-dev

gcc -o main main.c -lX11

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages